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

bramp / build-along / 19087954324
89%

Build:
DEFAULT BRANCH: main
Ran 05 Nov 2025 01:11AM UTC
Jobs 1
Files 58
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

05 Nov 2025 01:09AM UTC coverage: 85.858% (-0.03%) from 85.883%
19087954324

push

github

bramp
Enforce one winner per element in classification

- Add _element_winners dict to track winning candidates by element ID
- Update mark_winner() to prevent marking the same element as winner for multiple labels
- Add runtime validation that raises ValueError on duplicate winner attempts
- Add unit test verifying duplicate winner rejection
- Add integration test validating rule across all fixtures
- Update is_winner docstring to clarify its purpose vs _element_winners

This ensures each Element has at most one winner candidate, preventing
ambiguous classification results.

27 of 43 new or added lines in 3 files covered. (62.79%)

82 existing lines in 4 files now uncovered.

4025 of 4688 relevant lines covered (85.86%)

0.86 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
16
21.02
-1.28% src/build_a_long/pdf_extract/classifier/classifier_rules_test.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
98.56
2.82% src/build_a_long/pdf_extract/classifier/classification_result.py
2
87.88
0.0% src/build_a_long/pdf_extract/extractor/page_elements.py
17
79.78
0.23% src/build_a_long/pdf_extract/extractor/lego_page_elements.py
62
14.55
-0.11% src/build_a_long/pdf_extract/classifier/classifier_golden_test.py
Jobs
ID Job ID Ran Files Coverage
1 19087954324.1 05 Nov 2025 01:11AM UTC 58
85.86
GitHub Action Run
Source Files on build 19087954324
  • Tree
  • List 58
  • Changed 13
  • Source Changed 11
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19087954324
  • 383e4eb9 on github
  • Prev Build on main (#19087389880)
  • Next Build on main (#19121465813)
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