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

Function setup

tests/CppUTest/TestOutputTest.cpp:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 TestResult* result;
53
54 void setup()
55 {
56 mock = new StringBufferTestOutput();
57 printer = mock;
58 tst = new UtestShell("group", "test", "file", 10);
59 f = new TestFailure(tst, "failfile", 20, "message");
60 f2 = new TestFailure(tst, "file", 20, "message");
61 f3 = new TestFailure(tst, "file", 2, "message");
62 result = new TestResult(*mock);
63 result->setTotalExecutionTime(10);
64 millisTime = 0;
65 UT_PTR_SET(GetPlatformSpecificTimeInMillis, MockGetPlatformSpecificTimeInMillis);
66 TestOutput::setWorkingEnvironment(TestOutput::eclipse);
67
68 }
69 void teardown()
70 {
71 TestOutput::setWorkingEnvironment(TestOutput::detectEnvironment);

Callers

nothing calls this directly

Calls 3

setTotalExecutionTimeMethod · 0.80
setOutputOneMethod · 0.80
setOutputTwoMethod · 0.80

Tested by

no test coverage detected