MCPcopy Create free account
hub / github.com/cpputest/cpputest / MSC_SWITCHED_TEST

Function MSC_SWITCHED_TEST

tests/CppUTestExt/MockSupport_cTest.cpp:640–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638#endif
639
640MSC_SWITCHED_TEST(MockSupport_c, NoExceptionsAreThrownWhenAMock_cCallFailed)
641{
642 TestTestingFixture fixture;
643
644 fixture.setTestFunction(failedCallToMockC);
645 fixture.runAllTests();
646
647 LONGS_EQUAL(1, fixture.getFailureCount());
648 // Odd behavior in Visual C++, destructor still gets called here
649 CHECK(!destructorWasCalled);
650}
651
652static bool cpputestHasCrashed;
653

Callers

nothing calls this directly

Calls 3

setTestFunctionMethod · 0.80
runAllTestsMethod · 0.45
getFailureCountMethod · 0.45

Tested by

no test coverage detected