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

lightningnetwork / lnd / 12252204654
57%
master: 57%

Build:
Build:
LAST BUILD BRANCH: go124
DEFAULT BRANCH: master
Ran 10 Dec 2024 09:46AM UTC
Jobs 4
Files 814
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

10 Dec 2024 08:24AM UTC coverage: 49.833% (+0.06%) from 49.773%
12252204654

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

100202 of 201077 relevant lines covered (49.83%)

2.07 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
63.59
0.0% server.go
3
62.5
-0.85% lnrpc/wtclientrpc/wtclient.go
3
77.72
-0.14% routing/payment_lifecycle.go
11
58.59
-0.6% watchtower/wtdb/client_db.go
Jobs
ID Job ID Ran Files Coverage
1 itest-bitcoind - 12252204654.1 10 Dec 2024 09:49AM UTC 814
48.76
GitHub Action Run
2 itest-btcd - 12252204654.2 10 Dec 2024 09:46AM UTC 814
48.67
GitHub Action Run
3 itest-bitcoind-rpcpolling - 12252204654.3 10 Dec 2024 09:50AM UTC 814
48.75
GitHub Action Run
4 itest-neutrino - 12252204654.4 10 Dec 2024 09:54AM UTC 814
48.29
GitHub Action Run
Source Files on build 12252204654
  • Tree
  • List 814
  • Changed 35
  • Source Changed 0
  • Coverage Changed 35
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #9343
  • PR Base - master (#12235114561)
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