Skip to content

Add tests for core dataset types and CLI layer - #5

Merged
cabeen merged 1 commit into
mainfrom
add-dataset-cli-tests
Mar 11, 2026
Merged

cabeen merged 1 commit into
mainfrom
add-dataset-cli-tests

Conversation

@cabeen

@cabeen cabeen commented Mar 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • 216 new tests covering core dataset types (Sample, Sampling, Volume, Mask, Record, Affine, Vects) and the CLI layer (CliOption, CliSpecification, CliValues, CliModule)
  • Total test count: 965 (all passing in ~2 seconds)
  • Dataset tests verify construction, get/set, copy independence, coordinate transforms, and edge cases
  • CLI tests verify option building, argument parsing, default handling, and module wrapping

New test suites

Suite Tests Coverage
SampleTest 15 Construction, accessors, conversion, equality
SamplingTest 32 Dimensions, coordinates, containment, boundary, world/voxel transforms, iteration
VolumeTest 24 Construction, get/set scalar/vector, copy, proto, setAll, valid, subvolumes
MaskTest 29 Construction, foreground/background, labels, copy, volume conversion
RecordTest 22 Builder pattern, select, copy, equality, insertion order
AffineTest 13 Identity, translation, scaling, inverse, compose, extract components
VectsTest 16 Statistics, nearest, flatten, copy, column extraction
CliOptionTest 17 Builder methods, type flags, optional/advanced
CliSpecificationTest 16 Filtering, parsing, defaults, boolean flags, advanced params
CliValuesTest 4 Positional/keyed args, spec integration
CliModuleTest 3 Module wrapping, annotation validation

Test plan

  • All 965 tests pass locally
  • CI should pass (same infrastructure as previous PR)

216 new tests covering:
- Sample, Sampling, Volume, Mask, Record, Affine, Vects (dataset types)
- CliOption, CliSpecification, CliValues, CliModule (CLI layer)

Total test count: 965 (all passing)
@cabeen
cabeen merged commit 7e59587 into main Mar 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant