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

Method printCurrentTestStarted

src/CppUTest/JUnitTestOutput.cpp:128–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void JUnitTestOutput::printCurrentTestStarted(const UtestShell& test)
129{
130 impl_->results_.testCount_++;
131 impl_->results_.group_ = test.getGroup();
132 impl_->results_.startTime_ = (size_t) GetPlatformSpecificTimeInMillis();
133
134 if (impl_->results_.tail_ == NULLPTR) {
135 impl_->results_.head_ = impl_->results_.tail_
136 = new JUnitTestCaseResultNode;
137 }
138 else {
139 impl_->results_.tail_->next_ = new JUnitTestCaseResultNode;
140 impl_->results_.tail_ = impl_->results_.tail_->next_;
141 }
142 impl_->results_.tail_->name_ = test.getName();
143 impl_->results_.tail_->file_ = test.getFile();
144 impl_->results_.tail_->lineNumber_ = test.getLineNumber();
145 if (!test.willRun()) {
146 impl_->results_.tail_->ignored_ = true;
147 }
148}
149
150SimpleString JUnitTestOutput::createFileName(const SimpleString& group)
151{

Callers

nothing calls this directly

Calls 5

getGroupMethod · 0.80
getFileMethod · 0.80
getLineNumberMethod · 0.80
willRunMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected