kaycxx-test
C++ unit test framework
Loading...
Searching...
No Matches
it.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#include <kaycxx/test/skip.hpp>
16
17namespace kaycxx::test {
18
26void it(std::string_view description, callback body, std::source_location location = std::source_location::current());
27
38void it(std::string_view description, skip_condition skip_condition, callback body, std::source_location location = std::source_location::current());
39
40} // namespace kaycxx::test
Defines the callback type used by the test framework.
Condition used by a test case to decide whether it should be skipped before running hooks and test co...
Definition skip.hpp:20
Unit test framework functions and types.
Definition test.hpp:15
std::move_only_function< void()> callback
Callable block used by tests, suites, and hooks.
Definition callback.hpp:20
void it(std::string_view description, callback body, std::source_location location=std::source_location::current())
Registers a test case in the current suite.
Defines skip conditions for test cases.