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

hyperledger / fabric-x-committer / 24190596698
91%

Build:
DEFAULT BRANCH: main
Ran 09 Apr 2026 12:45PM UTC
Jobs 2
Files 128
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

09 Apr 2026 12:39PM UTC coverage: 91.417% (+0.005%) from 91.412%
24190596698

push

github

web-flow
[viper] Centralize configuration defaults in service packages (#528)

#### Type of change

- Improvement (improvement to code, performance, etc)
 
#### Description

Move hardcoded default values from `cmd/config/viper.go` to their
respective
  service packages (coordinator, verifier, vc, query). Export these
values as constants so they can be reused by the viper initialization
logic.

This consolidation reduces duplication and ensures that the defaults
used
  by the CLI stay in sync with the service implementations.

  Key changes:
- Exported Default... constants in service/coordinator,
service/verifier, service/vc, and service/query.
   - Updated cmd/config/viper.go to use these constants.
- Updated cmd/config/app_config_test.go to align with the centralized
defaults.

#### Additional details (Optional)

  - Removed yaml and json tags as they are not required.
  - Added validator tags to validate the input.

#### Related issues

  - resolves #426

---------

Signed-off-by: Senthilnathan <cendhu@gmail.com>

54 of 58 new or added lines in 5 files covered. (93.1%)

21 existing lines in 7 files now uncovered.

9969 of 10905 relevant lines covered (91.42%)

42621.73 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
84.38
-2.72% cmd/config/app_config.go
2
96.95
-0.76% utils/deliverorderer/orderer.go

Coverage Regressions

Lines Coverage ∆ File
7
91.88
-2.99% service/vc/validator_committer_service.go
4
88.61
-2.53% service/vc/committer.go
4
82.7
-1.08% service/vc/database.go
2
94.67
-0.82% service/coordinator/coordinator.go
2
84.28
1.16% service/sidecar/relay.go
1
96.63
-1.12% mock/sigverifier.go
1
80.33
-1.64% utils/utils.go
Jobs
ID Job ID Ran Files Coverage
1 unit-test - 24190596698.1 09 Apr 2026 12:45PM UTC 81
76.12
GitHub Action Run
2 db-test - 24190596698.2 09 Apr 2026 12:45PM UTC 128
84.38
GitHub Action Run
Source Files on build 24190596698
  • Tree
  • List 128
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6423cf25 on github
  • Prev Build on main (#24188567664)
  • Next Build on main (#24192692814)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc