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

liran-funaro / fabric-x-committer / 29677560172 / 3
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: fix/696-integration-port-reservation
DEFAULT BRANCH: main
Ran 19 Jul 2026 07:12AM UTC
Files 93
Run time 2s
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

19 Jul 2026 07:06AM UTC coverage: 83.736% (+0.2%) from 83.572%
29677560172.3

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>

6657 of 7950 relevant lines covered (83.74%)

1356.01 hits per line

Source Files on job unit-test - 29677560172.3
  • Tree
  • List 93
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 29677560172
  • ce0a7025 on github
  • Prev Job for on loadgen-const-distribution-shorthand (#29504965343.2)
  • Next Job for on loadgen-const-distribution-shorthand (#29686598346.1)
  • 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