Skip to content

🧪 Add tests for binary reading functions#1321

Closed
torusvektor wants to merge 1 commit into
leejet:masterfrom
torusvektor:testing-improvement-binary-reader-3476385643906577450
Closed

🧪 Add tests for binary reading functions#1321
torusvektor wants to merge 1 commit into
leejet:masterfrom
torusvektor:testing-improvement-binary-reader-3476385643906577450

Conversation

@torusvektor
Copy link
Copy Markdown

  • Refactored read_u64, read_int, and read_short from model.cpp to util.cpp and util.h to make them testable.
  • Improved the implementation of these functions with explicit types and safer casts.
  • Added a new test suite in tests/test_binary_reader.cpp covering various scenarios and edge cases.
  • Integrated the tests into the CMake build system.

- Refactored `read_u64`, `read_int`, and `read_short` from `model.cpp` to `util.cpp` and `util.h` to make them testable.
- Improved the implementation of these functions with explicit types and safer casts.
- Added a new test suite in `tests/test_binary_reader.cpp` covering various scenarios and edge cases.
- Integrated the tests into the CMake build system.

Co-authored-by: torusvektor <117734669+torusvektor@users.noreply.github.com>
@leejet
Copy link
Copy Markdown
Owner

leejet commented May 17, 2026

Thanks for the PR, but I don’t think this is necessary for the project right now, and it also includes some unrelated AI-generated test code, so I’m going to close it.

@leejet leejet closed this May 17, 2026
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