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

lightninglabs / taproot-assets / 11789125409
41%
main: 57%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-1913-46bebd3a34518c96f58957c2cb9c91e18cfdf1cf
DEFAULT BRANCH: main
Ran 12 Nov 2024 01:43AM UTC
Jobs 1
Files 207
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

12 Nov 2024 01:38AM UTC coverage: 40.658%. Remained the same
11789125409

Pull #1187

github

Roasbeef
scripts: use `trap` to make sure old files always restored

In this commit, we fix an issue I observed on my machine after updating
many command line/dev utilities.

I observed that if the script failed for w/e reason, then the old files
weren't properly restored.

The repro on my machine is something like:
  1. Shutdown docker, make sure the daemon isn't accessible.
  2. Run `mac sqlc`. The script should fail.
  3. Observe that the files in your local working tree are still
     altered.

We fix this by using the `trap` command, [which is basically like Go's
`defer`, but for bash
scripts](https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_12_02.html)!
Pull Request #1187: scripts: use `trap` to make sure old files always restored

24691 of 60728 relevant lines covered (40.66%)

57631.25 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
53.22
0.0% tappsbt/create.go
2
86.85
-0.47% internal/test/helpers.go
2
84.43
-0.26% commitment/tap.go
2
80.2
0.0% asset/asset.go
4
68.5
-0.38% tapgarden/caretaker.go
Jobs
ID Job ID Ran Files Coverage
1 unit - 11789125409.1 12 Nov 2024 01:43AM UTC 207
40.66
GitHub Action Run
Source Files on build 11789125409
  • Tree
  • List 207
  • Changed 74
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1187
  • PR Base - main (#11782733093)
  • Delete
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