test(unit): add tests for utility, round_robin, and stat_trackers#5308
Open
dasepmoch wants to merge 1 commit into
Open
test(unit): add tests for utility, round_robin, and stat_trackers#5308dasepmoch wants to merge 1 commit into
dasepmoch wants to merge 1 commit into
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Description
Add unit tests for three modules that currently have no test coverage:
src/utility.h— Hex conversion (util::hex,hex_vec,from_hex,from_hex_vec), string parsing (from_chars,from_view),Eithertype,FailGuard,buffer_t,append_struct, endian helpers, andlog_hex.src/round_robin.h— Round-robin iterator wrap-around, arithmetic operators, comparisons, edge cases (single element, multiple cycles), and arrow operator with structs.src/stat_trackers.h/.cpp— Format helpers (one_digit_after_decimal,two_digits_after_decimal),min_max_avg_trackercallback timing, min/max/avg calculation correctness, reset behavior, and double type support.These are pure-logic, header-only (or minimal .cpp) modules with zero external dependencies, making them ideal candidates for improving test coverage without needing GPU or platform-specific hardware.
Related Issues / Discussions
Type of Change
Checklist