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

cybertec-postgresql / pgcov / 24460361700
47%

Build:
DEFAULT BRANCH: master
Ran 15 Apr 2026 02:31PM 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 02:30PM UTC coverage: 39.905% (+0.2%) from 39.657%
24460361700

push

github

pashagolub
fix(instrument): place signal before terminal stmts inside branches

When a segment wraps a terminal statement (RETURN, RAISE EXCEPTION)
inside a control-flow keyword (IF/ELSIF/ELSE … THEN … RETURN …), the
coverage signal was placed after the entire segment — past the RETURN —
making it unreachable. Coverage for these branches was always reported
as 0 regardless of test execution.

Add findTerminalPos() to scan a segment for an embedded terminal
statement and return its byte offset. In emitSegment, use a three-way
dispatch:

  1. Segment starts with terminal → signal before (existing logic)
  2. Segment contains terminal inside → signal before the inner
     terminal (new logic)
  3. No terminal → signal after (existing logic)

This ensures every injected PERFORM pg_notify() is reachable by at
least one execution path.

Add indentOf() helper to extract indentation for the inner terminal
line (may differ from the segment's first-line indent).

Add tests: TestFindTerminalPos (8 cases),
TestInstrumentBody_ReturnInBranches,
TestInstrumentBody_RaiseExceptionInBranch, and
TestInstrumentBody_MixedTerminalNonTerminalBranches.

43 of 45 new or added lines in 1 file covered. (95.56%)

1004 of 2516 relevant lines covered (39.9%)

0.45 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
90.4
0.06% internal/instrument/instrumenter.go
Jobs
ID Job ID Ran Files Coverage
1 24460361700.1 15 Apr 2026 02:30PM UTC 26
39.9
GitHub Action Run
Source Files on build 24460361700
  • 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 #24460361700
  • d51d3bfb on github
  • Prev Build on master (#24453437184)
  • Next Build on master (#24461595806)
  • 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