• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

liran-funaro / fabric-x-committer / 29504965343
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: skill-dev
DEFAULT BRANCH: main
Ran 16 Jul 2026 02:09PM UTC
Jobs 3
Files 129
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jul 2026 02:03PM UTC coverage: 91.63%. First build
29504965343

push

github

liran-funaro
[loadgen] Allow bare number as const distribution shorthand

- New feature

Add a mapstructure decode hook so a bare number is accepted as a
shorthand for a const distribution. For example:

    read-write-count: 2

is now equivalent to:

    read-write-count:
      const: 2

The hook targets the workload.Distribution type, so the shorthand
applies uniformly to every distribution config field (read/write
counts, query-size, min-invalid-keys-portion, dependency gap).
Non-numeric values (maps, strings, booleans) are left untouched, so
the full distribution forms (const, uniform, normal, discrete,
bernoulli) keep working.

- Documented the shorthand in the loadgen sample config and switched
  the read-write-count example to it, which makes the existing
  sample-loading test cover the shorthand end-to-end through the real
  config loader.
- Added decoder unit tests for the shorthand (int/float/negative/zero),
  regression tests for the explicit forms, and a guard test ensuring a
  non-numeric scalar surfaces a decode error rather than being coerced.

 - resolves #673

Signed-off-by: Liran Funaro <liran.funaro@gmail.com>

13 of 15 new or added lines in 1 file covered. (86.67%)

10455 of 11410 relevant lines covered (91.63%)

42663.51 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
97.59
cmd/config/config_decoder.go
Jobs
ID Job ID Ran Files Coverage
1 core-db-test - 29504965343.1 16 Jul 2026 02:09PM UTC 100
45.16
GitHub Action Run
2 unit-test - 29504965343.2 16 Jul 2026 02:11PM UTC 93
83.57
GitHub Action Run
3 db-test - 29504965343.3 16 Jul 2026 02:11PM UTC 129
79.9
GitHub Action Run
Source Files on build 29504965343
  • Tree
  • List 129
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6df20126 on github
  • Next Build on loadgen-const-distribution-shorthand (#29677560172)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc