Skip to content

Set up GTest test suite #2

Description

@MihaiStreames

Goal

Add a test suite covering current functionality, split by feature.

Test files

file covers
tests/test_expected.cpp Expected<T> value/error paths, Result<T> alias
tests/test_failure.cpp Failure construction, push(), ring buffer, downcast, chain(), root_cause()
tests/test_macros.cpp ANYHOW_TRY, ANYHOW_TRY_CATCH, ANYHOW_TRY_ASSIGN, ANYHOW_BAIL, ANYHOW_ENSURE
tests/test_scope_guard.cpp fire on destroy, release(), move constructor, no double-fire
tests/test_fmt.cpp fmt(), operator<<, frame display
tests/test_context.cpp context(), with_context()

Setup

  • GTest via CMake FetchContent
  • Tests run in CI

Activity

  1. changed the title [-]Set up GTest + libFuzzer test suite[/-] [+]Set up GTest test suite[/+] on Jun 15, 2026
  2. added 2 commits that reference this issue on Jun 16, 2026
    465f306
    5ad00f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ciBuild, CMake, toolingtech-debtWorth revisiting later

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions