Skip to content

Commit 2f572cc

Browse files
committed
refactor: Inline test data and group related test cases
- Move CMake test data from external files to inline here-strings - Group related test scenarios into single test cases for better readability - Reduce test count from 16 to 6 while maintaining same coverage - Remove external testdata/cmake/ directory (no longer needed) - Improve test maintainability - all test input/output visible in one place Test groupings: - Parse scenarios: basic, auto-detect, hash, complex formatting - Multiple deps: auto-detection errors, explicit selection - Error scenarios: missing deps, missing repo/tag - Hash resolution: null results, network failures - Update scenarios: tag-to-tag, hash-to-hash, complex formatting - Update errors: missing dependency updates
1 parent f058514 commit 2f572cc

File tree

7 files changed

+196
-161
lines changed

7 files changed

+196
-161
lines changed

updater/tests/testdata/cmake/complex-formatting.cmake

Lines changed: 0 additions & 14 deletions
This file was deleted.

updater/tests/testdata/cmake/hash-dependency.cmake

Lines changed: 0 additions & 11 deletions
This file was deleted.

updater/tests/testdata/cmake/malformed.cmake

Lines changed: 0 additions & 8 deletions
This file was deleted.

updater/tests/testdata/cmake/missing-repository.cmake

Lines changed: 0 additions & 8 deletions
This file was deleted.

updater/tests/testdata/cmake/multiple-dependencies.cmake

Lines changed: 0 additions & 17 deletions
This file was deleted.

updater/tests/testdata/cmake/single-dependency.cmake

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)