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

hyperledger-labs / fabric-smart-client / 35695599976
91%

Build:
DEFAULT BRANCH: main
Ran 22 Sep 2026 06:38AM UTC
Jobs 22
Files 502
Run time 2min
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

22 Sep 2026 06:36AM UTC coverage: 86.039% (-0.02%) from 86.055%
35695599976

push

github

web-flow
fix(logging): report an unparseable caller name instead of panicking (#1844)

GetPackageName parses the caller's function name on the assumption that
it looks like github.com/org/repo/pkg.Func -- everything up to the first
dot after the last slash. strings.LastIndex returns -1 when there is no
slash, and the following slice expression panics.

Names from a module path always carry a slash, so nothing in production
reaches this: every caller arrives through the chain the function's
runtime.Caller(4) depth assumes. A caller at any other depth can resolve
frame 4 to a standard-library function, whose name has no slash.

Both cases now return the error the signature already provides for, as
the two existing failure modes do.

With the panic gone, GetLogger and GetLoggerWithReplacements are
testable: calling them directly from a test finds no fourth frame and
reports it, while MustGetLogger adds a frame of its own, so from a test
the name resolves and the registered replacements are applied. This
replaces the TestMustGetLogger comment that described #1841 as an
unfixed, separately tracked bug.

The package is now at 97.8%. The two new branches are not reachable from
a test -- no test can put a slash-less name at frame 4 -- so they stay
uncovered.

Fixes #1841

Signed-off-by: Siddhi Khandelwal <siddhi.200727@gmail.com>

4 of 6 new or added lines in 1 file covered. (66.67%)

10 existing lines in 4 files now uncovered.

27499 of 31961 relevant lines covered (86.04%)

2319.21 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
89.58
6.25% platform/common/services/logging/logger.go

Coverage Regressions

Lines Coverage ∆ File
5
84.49
-1.39% platform/view/services/comm/host/websocket/ws/multiplexed_provider.go
2
96.72
-3.28% platform/common/utils/lazy/provider.go
2
91.42
-0.66% platform/view/services/comm/p2p.go
1
92.94
-0.59% platform/fabric/core/generic/ordering/bft.go
Jobs
ID Job ID Ran Files Coverage
1 utest-extensions - 35695599976.1 22 Sep 2026 06:39AM UTC 8
52.57
GitHub Action Run
2 itest-fsc-signedpingpong - 35695599976.2 22 Sep 2026 06:40AM UTC 240
31.66
GitHub Action Run
3 itest-fsc-stoprestart - 35695599976.3 22 Sep 2026 06:40AM UTC 241
33.53
GitHub Action Run
4 itest-fabric-stoprestart - 35695599976.4 22 Sep 2026 06:41AM UTC 448
31.16
GitHub Action Run
5 itest-fabric-iou-libp2p - 35695599976.5 22 Sep 2026 06:41AM UTC 458
36.56
GitHub Action Run
6 utest-postgres - 35695599976.6 22 Sep 2026 06:40AM UTC 493
9.76
GitHub Action Run
7 itest-fabric-events - 35695599976.7 22 Sep 2026 06:41AM UTC 453
29.04
GitHub Action Run
8 itest-fabric-iouhsm - 35695599976.8 22 Sep 2026 06:42AM UTC 458
39.67
GitHub Action Run
9 itest-fabric-atsachaincode - 35695599976.9 22 Sep 2026 06:40AM UTC 453
30.92
GitHub Action Run
10 itest-fabric-iou - 35695599976.10 22 Sep 2026 06:43AM UTC 458
40.42
GitHub Action Run
11 itest-fabric-runtimeconfig - 35695599976.11 22 Sep 2026 06:41AM UTC 458
38.87
GitHub Action Run
12 itest-fsc-pingpong - 35695599976.12 22 Sep 2026 06:39AM UTC 245
34.88
GitHub Action Run
13 itest-fabric-atsa - 35695599976.13 22 Sep 2026 06:42AM UTC 448
43.69
GitHub Action Run
14 itest-fabricx-multiendorsement - 35695599976.14 22 Sep 2026 06:38AM UTC 480
28.57
GitHub Action Run
15 itest-fabric-configupdate - 35695599976.15 22 Sep 2026 06:40AM UTC 458
38.83
GitHub Action Run
16 itest-fabric-twonets - 35695599976.16 22 Sep 2026 06:40AM UTC 448
29.21
GitHub Action Run
17 utest-root - 35695599976.17 22 Sep 2026 06:42AM UTC 493
82.56
GitHub Action Run
18 itest-fabricx-simple - 35695599976.18 22 Sep 2026 06:39AM UTC 480
27.93
GitHub Action Run
19 itest-fabricx-deployment - 35695599976.19 22 Sep 2026 06:38AM UTC 480
28.6
GitHub Action Run
20 itest-fabricx-configupdate - 35695599976.20 22 Sep 2026 06:40AM UTC 480
28.67
GitHub Action Run
21 itest-fabricx-atsa - 35695599976.21 22 Sep 2026 06:39AM UTC 480
30.74
GitHub Action Run
22 itest-fabricx-iou - 35695599976.22 22 Sep 2026 06:39AM UTC 480
29.38
GitHub Action Run
Source Files on build 35695599976
  • Tree
  • List 502
  • Changed 24
  • Source Changed 1
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35695599976
  • d38bab85 on github
  • Prev Build on main (#35607231674)
  • Next Build on main (#35707228429)
  • 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