kaycxx-test
C++ unit test framework
Loading...
Searching...
No Matches
describe.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Klaus Reimer <k@ailis.de>
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
11#include <source_location>
12#include <string_view>
13
15
16namespace kaycxx::test {
17
27void describe(std::string_view description, callback body, std::source_location location = std::source_location::current());
28
29} // namespace kaycxx::test
Defines the callback type used by the test framework.
Unit test framework functions and types.
Definition test.hpp:15
void describe(std::string_view description, callback body, std::source_location location=std::source_location::current())
Defines a nested test suite and immediately executes its registration body.
std::move_only_function< void()> callback
Callable block used by tests, suites, and hooks.
Definition callback.hpp:20