MCPcopy Create free account
hub / github.com/boostorg/leaf / main

Function main

test/on_error_preload_basic_test.cpp:50–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50int main()
51{
52 test(
53 []
54 {
55 auto load = leaf::on_error( info<42>{42}, info<-42>{-42} );
56 return leaf::new_error();
57 });
58 test(
59 []
60 {
61 info<42> inf1{42};
62 info<-42> const inf2{-42};
63 auto load = leaf::on_error( inf1, inf2 );
64 return leaf::new_error();
65 });
66 test(
67 []
68 {
69 info<42> inf1{42};
70 auto load = leaf::on_error( inf1, info<-42>{-42} );
71 return leaf::new_error();
72 });
73
74
75 return boost::report_errors();
76}

Callers

nothing calls this directly

Calls 4

on_errorFunction · 0.85
new_errorFunction · 0.85
report_errorsFunction · 0.85
testFunction · 0.70

Tested by

no test coverage detected