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

Function f1

example/error_log.cpp:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59int const failure_percent = 25;
60
61leaf::result<void> f1()
62{
63 ERROR_LOG;
64 if( (std::rand()%100) > failure_percent )
65 return { };
66 else
67 return leaf::new_error();
68}
69
70leaf::result<void> f2()
71{

Callers 1

f2Function · 0.70

Calls 1

new_errorFunction · 0.85

Tested by

no test coverage detected