kaycxx-test
C++ unit test framework
Loading...
Searching...
No Matches
skipped.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 <string>
12#include <string_view>
13
14namespace kaycxx::test {
15
19class skipped {
20public:
26 explicit skipped(std::string_view reason = "");
27
33 std::string const& reason() const noexcept;
34
35private:
37 std::string reason_;
38};
39
40} // namespace kaycxx::test
Result object passed to reporters when a test case was skipped.
Definition skipped.hpp:19
std::string const & reason() const noexcept
Returns the skip reason.
skipped(std::string_view reason="")
Creates a skipped test result.
Unit test framework functions and types.
Definition test.hpp:15