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

Function main

example/abort.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <cassert>
11
12int main() {
13 using namespace boost::ut;
14
15 "abort"_test = [] {
16 expect(not aborts([] {}));
17 expect(aborts([] { assert(false); }));
18 expect(aborts([] { throw; }));
19 };
20}

Callers

nothing calls this directly

Calls 2

expectFunction · 0.85
abortsFunction · 0.85

Tested by

no test coverage detected