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

cybertec-postgresql / pgcov / 24453437184
47%

Build:
DEFAULT BRANCH: master
Ran 15 Apr 2026 12:06PM UTC
Jobs 1
Files 26
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

15 Apr 2026 12:03PM UTC coverage: 39.657% (+1.2%) from 38.474%
24453437184

push

github

pashagolub
fix(instrument): emit coverage signal after statement execution

Move the injected pg_notify() call from before the tracked statement to
after it so that coverage reflects successful execution rather than
attempted execution. Previously, if a statement raised an exception
caught by the caller, the signal had already been sent — recording false
coverage.

Terminal statements (RETURN, RAISE EXCEPTION, bare RAISE) keep the
signal before the statement because they exit the current scope and
any code placed after them would be unreachable. Non-fatal RAISE levels
(NOTICE, WARNING, INFO, LOG, DEBUG) are correctly identified as
non-terminal and receive after-execute signals.

Add isTerminalSegment() helper that inspects the first meaningful token
of a segment to distinguish terminal from non-terminal statements.

Add tests: TestIsTerminalSegment (17 cases),
TestInstrumentBody_CoverageAfterExecute
(verifies ordering for assignments vs RETURN),
TestInstrumentBody_RaiseExceptionBeforeNotify
(verifies RAISE EXCEPTION vs RAISE NOTICE ordering).

55 of 58 new or added lines in 1 file covered. (94.83%)

993 of 2504 relevant lines covered (39.66%)

0.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
90.34
1.15% internal/instrument/instrumenter.go
Jobs
ID Job ID Ran Files Coverage
1 24453437184.1 15 Apr 2026 12:06PM UTC 26
39.66
GitHub Action Run
Source Files on build 24453437184
  • Tree
  • List 26
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24453437184
  • 07bd2bd5 on github
  • Prev Build on master (#23247665092)
  • Next Build on master (#24460361700)
  • 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

© 2026 Coveralls, Inc