Skip to content

Add test_utils for optimize test file - #72

Merged
CoraBlack merged 8 commits into
gkit-org:mainfrom
CoraBlack:main
Aug 4, 2026
Merged

Add test_utils for optimize test file#72
CoraBlack merged 8 commits into
gkit-org:mainfrom
CoraBlack:main

Conversation

@CoraBlack

Copy link
Copy Markdown
Contributor

Test utils API

  • TestRunner, which is the test flow controller and reporter.
    • add_test_func, accept a callable object which type is bool()
    • run(), start to test.
  • assert_if (avaliable in release), abort the program and print error message when condition is true.
  • assert_ifnot (avaliable in release), abort the program and print error message when condition is false.
  • logln, based of std::format, supporting safe and easy to use print method.

@CoraBlack
CoraBlack merged commit 9417faf into gkit-org:main Aug 4, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in libgkit-dev-record Aug 4, 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.

1 participant