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

Function setup

tests/CppUTest/TeamCityOutputTest.cpp:54–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 TestResult* result;
53
54 void setup()
55 {
56 mock = new TeamCityOutputToBuffer();
57 tcout = mock;
58 tst = new UtestShell("group", "test", "file", 10);
59 f = new TestFailure(tst, "failfile", 20, "failure message");
60 f2 = new TestFailure(tst, "file", 20, "message");
61 f3 = new TestFailure(tst, "file", 30, "apos' pipe| [brackets]\r\nCRLF");
62 result = new TestResult(*mock);
63 result->setTotalExecutionTime(10);
64 millisTime = 0;
65 UT_PTR_SET(GetPlatformSpecificTimeInMillis, MockGetPlatformSpecificTimeInMillis);
66 }
67 void teardown()
68 {
69 delete tcout;

Callers

nothing calls this directly

Calls 1

setTotalExecutionTimeMethod · 0.80

Tested by

no test coverage detected