MCPcopy Create free account
hub / github.com/boostorg/json / fail_loop

Function fail_loop

test/test.hpp:93–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92template<class F>
93void
94fail_loop(F&& f)
95{
96 fail_resource ss;
97 ss.fail_max = 1;
98 while(ss.fail < 200)
99 {
100 try
101 {
102 f(&ss);
103 }
104 catch(test_failure const&)
105 {
106 continue;
107 }
108 break;
109 }
110 BOOST_TEST(ss.fail < 200);
111}
112
113//----------------------------------------------------------
114

Callers 15

grindMethod · 0.85
testAssignmentMethod · 0.85
testModifiersMethod · 0.85
testCtorsMethod · 0.85
testModifiersMethod · 0.85
testConstructionMethod · 0.85
testAssignmentMethod · 0.85
testAssignMethod · 0.85
testCapacityMethod · 0.85
testInsertMethod · 0.85
testPushPopMethod · 0.85
testAppendMethod · 0.85

Calls 1

fFunction · 0.70

Tested by

no test coverage detected