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

IJHack / QtPass / 25967420029 / 1
55%
main: 55%

Build:
DEFAULT BRANCH: main
Ran 16 May 2026 04:51PM UTC
Files 72
Run time 2s
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

16 May 2026 04:45PM UTC coverage: 54.868% (+0.9%) from 53.977%
25967420029.1

push

github

web-flow
test: add coverage for readTemplates, writeTemplates, getFolderTemplate (#1496)

* test: add coverage for readTemplates, writeTemplates, getFolderTemplate

readTemplates (4 tests):
- missing .templates file returns empty hash
- single section with multiple fields parsed correctly
- multiple sections parsed into separate hash entries
- empty section name [] is ignored with a warning
- comment lines (#) are skipped

writeTemplates (3 tests):
- round-trip: write then read yields identical data
- empty hash writes successfully and reads back empty
- sections are written in alphabetical key order

getFolderTemplate (4 tests):
- .default_template in the current directory is found
- .default_template in a parent directory is found
- no .default_template anywhere returns empty string
- .default_template containing only a comment returns empty string

Total util tests: 123 → 136

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* test: fix two fragile assertions in util template tests

writeTemplatesSortedKeys: indexOf returns -1 for missing markers, so
-1 < positivePos would silently pass. Add explicit presence checks for
both [alpha] and [zebra] before the ordering assertion.

readTemplatesEmptySectionIgnored: add QTest::ignoreMessage(QtWarningMsg)
before calling readTemplates so the expected qWarning is asserted as a
test side-effect rather than just leaking to stderr.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: use forward slash in getFolderTemplate path prefix check

QDir::cleanPath() normalizes separators to '/' on all platforms, but
QDir::separator() returns '\' on Windows, causing the startsWith guard
to never match on Windows and preventing parent-directory traversal.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: avoid double slash in getFolderTemplate ancestry check

Appending "/" to cleanStoreAbs produces "//" when the store is at the
filesystem root ("/"), causing startsWith to never match. Chec... (continued)

3691 of 6727 relevant lines covered (54.87%)

35.49 hits per line

Source Files on job 25967420029.1
  • Tree
  • List 72
  • Changed 3
  • Source Changed 3
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25967420029
  • b2df519d on github
  • Prev Job for on main (#25951395858.1)
  • Next Job for on main (#25970162383.1)
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