Skip to content

BAG 2.0.6 - #150

Merged
selimnairb merged 57 commits into
masterfrom
dev-test-coverage
Oct 15, 2026
Merged

selimnairb merged 57 commits into
masterfrom
dev-test-coverage

Conversation

@selimnairb

@selimnairb selimnairb commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Bug fixes

API changes

Note: These API changes are small and focused on fixing obvious bugs. In general they should not break most existing applications.

CMake

Testing updates

  • Greatly improved test coverage previous (from ~70% of functions to ca. 90%), with much higher line and branch coverage
  • Update coverage configuration to enable branch coverage
  • Begin adding tests for parts of the C API.
  • Update from Catch2 v3.4.0 to v3.16.0, which should improve CI performance
  • Update deprecated actions: checkout@4/@6 to @7, setup-python@4/@6 to @7.

CI

  • Dependencies
    • Update from SWIG 4.3.0 to SWIG 4.4.1
    • Update libxml2 from version 2.13.9 to 2.15.1
  • Windows
    • Calculate SHA256 sums for dependencies before unarchiving and building
    • Enable parallel builds, which should improve CI performance
  • Test matrix
    • Windows
      • Update from Visual Studio 2022 to 2026
    • Linux
      • Update from Ubuntu 22.04 to 24.04
    • Python
      • Update from CPython 3.10-3.13 to 3.11-3.14

…p to facilitate unit testing; Add test_bag_util test suite
… of SurfaceCorrections::readCorrected() and SurfaceCorrections::readCorrectedRow(); Fix bug in surface correction creation where descriptor would not have spacings set, resulting in NaN values being generated when calling readCorrectedRow()
… in function so that invalid version numbers can be caught earlier and reported via new exception InvalidBAGVersion; tests: Improve coverge of bag_dataset.cpp
…alifier to data parameter, which was present in the definition in bag.cpp
…_ERRORS; tests: C api: cover all cases in bagGetErrorString()
…tion return pointer was not properly set; tests: Add tests covering happy path for bagCreateGeorefMetadataLayer() and bagGetGeorefMetadataLayerDefinition()
…lled before tests in test_bag_metadata_import, those latter tests would fail due to not being able to find the XML schema
…) to ensure consistent values are returned when calling each's dual
…bxml2 2.13.9->2.15.1, Visual Studio 2022->2026; enable parallel builds
…4 to 24.04; Update Python matrix to cover 3.11-3.14
@selimnairb selimnairb changed the title Improve test coverage BAG 2.0.6 Sep 29, 2026
Comment thread api/bag_util.cpp Outdated
Comment thread api/bag_util.h

@brian-r-calder brian-r-calder left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small modifications required (primarily for header comments with license terms).

@selimnairb
selimnairb marked this pull request as ready for review October 15, 2026 20:25
@selimnairb
selimnairb merged commit 4e8601e into master Oct 15, 2026
6 checks 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.

2 participants