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

bramp / build-along / 19051820527
89%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2025 10:52PM UTC
Jobs 1
Files 54
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

03 Nov 2025 10:50PM UTC coverage: 87.208% (+0.6%) from 86.657%
19051820527

push

github

bramp
refactor: Complete migration to candidates-based ClassificationResult

This commit completes a major refactoring to eliminate data duplication
in the ClassificationResult class and improve code organization.

Core Changes to ClassificationResult (types.py):
- Removed redundant _labeled_elements and _scores fields
- Made candidates the single source of truth for all classification data
- Updated all accessor methods to derive from candidates dictionary

Classifier Updates:
- PageNumberClassifier: Include ALL scored elements in candidates,
  use is_winner flag, construct PageNumber objects
- PartCountClassifier: Construct PartCount objects
- StepNumberClassifier: Construct StepNumber objects
- PartsListClassifier: Populate candidates (construction in builder)

Code Extraction & Organization:
- Created text_extractors.py: Centralized parsing logic for page numbers,
  step numbers, and part counts
- Created hierarchy_builder.py: Extracted hierarchy-building logic from
  lego_page_builder.py

Test Updates:
- Migrated lego_page_builder_test.py to candidates API
- Fixed test expectations for part count parsing
- Added tests for new modules

All 100+ tests passing.

594 of 649 new or added lines in 14 files covered. (91.53%)

7 existing lines in 3 files now uncovered.

3402 of 3901 relevant lines covered (87.21%)

0.87 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
92.56
-0.48% src/build_a_long/pdf_extract/classifier/parts_list_classifier.py
3
96.77
-1.21% src/build_a_long/pdf_extract/classifier/page_number_classifier.py
3
94.37
-3.82% src/build_a_long/pdf_extract/classifier/part_count_classifier.py
3
95.79
-4.21% src/build_a_long/pdf_extract/classifier/step_number_classifier.py
8
92.98
src/build_a_long/pdf_extract/classifier/hierarchy_builder.py
10
85.88
-9.86% src/build_a_long/pdf_extract/classifier/types.py
27
37.1
-9.84% src/build_a_long/pdf_extract/classifier/parts_image_classifier.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
88.24
0.0% src/build_a_long/pdf_extract/classifier/label_classifier.py
1
95.79
-4.21% src/build_a_long/pdf_extract/classifier/step_number_classifier.py
5
75.16
-1.24% src/build_a_long/pdf_extract/main.py
Jobs
ID Job ID Ran Files Coverage
1 19051820527.1 03 Nov 2025 10:52PM UTC 54
87.21
GitHub Action Run
Source Files on build 19051820527
  • Tree
  • List 54
  • Changed 11
  • Source Changed 10
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19051820527
  • 862065ed on github
  • Prev Build on main (#19026719275)
  • Next Build on main (#19054834636)
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