MCPcopy Create free account
hub / github.com/boost-ext/ut / main

Function main

example/tag.cpp:10–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <boost/ut.hpp>
9
10int main() {
11 using namespace boost::ut;
12
13 cfg<override> = {.filter = "tag", .tag = {"execute"}};
14
15 // clang-format off
16 tag("execute") / skip /
17 "tag"_test = [] {
18 expect(42_i == 43) << "should not fire!";
19 expect(false) << "should fail!";
20 };
21
22 tag("execute") / "tag"_test= [] {
23 expect(42_i == 42);
24 };
25
26 tag("not executed") / "tag"_test= [] {
27 expect(43_i == 42);
28 };
29
30 tag("not executed") / tag("execute") /
31 "tag"_test= [] {
32 expect(42_i == 42);
33 };
34 // clang-format on
35}

Callers

nothing calls this directly

Calls 2

tagClass · 0.85
expectFunction · 0.85

Tested by

no test coverage detected