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

lightningnetwork / lnd / 12280337084
57%
master: 57%

Build:
Build:
LAST BUILD BRANCH: go124
DEFAULT BRANCH: master
Ran 11 Dec 2024 06:09PM UTC
Jobs 3
Files 821
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

11 Dec 2024 04:09PM UTC coverage: 49.495% (-0.05%) from 49.54%
12280337084

Pull #9343

github

ellemouton
fn: rework the ContextGuard and add tests

In this commit, the ContextGuard struct is re-worked such that the
context that its new main WithCtx method provides is cancelled in sync
with a parent context being cancelled or with it's quit channel being
cancelled. Tests are added to assert the behaviour. In order for the
close of the quit channel to be consistent with the cancelling of the
derived context, the quit channel _must_ be contained internal to the
ContextGuard so that callers are only able to close the channel via the
exposed Quit method which will then take care to first cancel any
derived context that depend on the quit channel before returning.
Pull Request #9343: fn: expand the ContextGuard and add tests

100285 of 202617 relevant lines covered (49.49%)

1.54 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
66.99
-0.27% lnwallet/chancloser/chancloser.go
2
63.74
0.0% server.go
2
63.61
1.64% chainntnfs/interface.go
2
68.26
-0.43% htlcswitch/interceptable_switch.go
2
70.52
-0.03% rpcserver.go
3
88.33
-5.0% contractcourt/breach_resolver.go
3
77.72
-0.42% routing/payment_lifecycle.go
3
86.49
-1.62% chainntnfs/mempool.go
5
86.23
-0.52% sweep/sweeper.go
6
71.61
-0.16% channeldb/channel.go
6
72.86
-0.45% contractcourt/breach_arbitrator.go
8
59.27
-0.73% graph/builder.go
9
53.41
-0.65% config.go
9
73.96
-0.55% discovery/syncer.go
14
75.74
-0.38% peer/brontide.go
15
74.88
-3.62% discovery/sync_manager.go
21
77.58
-6.76% lnrpc/websocket_proxy.go
24
71.91
-3.49% chainntnfs/bitcoindnotify/bitcoind.go
36
49.9
-7.42% chainreg/chainregistry.go
Jobs
ID Job ID Ran Files Coverage
1 itest-btcd - 12280337084.1 11 Dec 2024 06:09PM UTC 821
48.4
GitHub Action Run
2 itest-neutrino - 12280337084.2 11 Dec 2024 06:16PM UTC 821
48.0
GitHub Action Run
3 itest-bitcoind-rpcpolling - 12280337084.3 11 Dec 2024 06:12PM UTC 821
48.48
GitHub Action Run
Source Files on build 12280337084
  • Tree
  • List 821
  • Changed 34
  • Source Changed 0
  • Coverage Changed 34
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #9343
  • PR Base - master (#12266849117)
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

© 2025 Coveralls, Inc