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

Function main

example/cli.cpp:10–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <boost/ut.hpp>
9
10int main(int argc, const char** argv) {
11 using namespace boost::ut;
12
13 cfg<override> = {.filter = argc > 1 ? argv[1] : "",
14 .colors = argc > 2 and argv[2][0] == '0'
15 ? colors{.none = "", .pass = "", .fail = ""}
16 : colors{},
17 .dry_run = argc > 3 ? argv[3][0] == '1' : false};
18
19 "cli"_test = [] {
20 "pass"_test = [] { expect(42 == 42_i); };
21 "fail"_test = [] { expect(0 == 42_i); };
22 };
23}

Callers

nothing calls this directly

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected