MCPcopy Create free account
hub / github.com/catboost/catboost / OnFinish

Method OnFinish

library/cpp/testing/unittest/junit.cpp:223–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void TJUnitProcessor::OnFinish(const TFinish* descr) {
224 if (!GetForkTests() || GetIsForked()) {
225 auto* testCase = GetTestCase(descr->test);
226 testCase->Success = descr->Success;
227 if (StartCurrentTestTime != TInstant::Zero()) {
228 testCase->DurationSecods = (TInstant::Now() - StartCurrentTestTime).SecondsFloat();
229 }
230 StartCurrentTestTime = TInstant::Zero();
231 TransferFromCapturer(StdOutCapturer, testCase->StdOut, Cout);
232 TransferFromCapturer(StdErrCapturer, testCase->StdErr, Cerr);
233 } else {
234 MergeSubprocessReport();
235 }
236 UncaptureSignal();
237}
238
239TString TJUnitProcessor::BuildFileName(size_t index, const TStringBuf extension) const {
240 TStringBuilder result;

Callers 1

SignalHandlerMethod · 0.45

Calls 4

GetTestCaseFunction · 0.85
ZeroFunction · 0.85
SecondsFloatMethod · 0.80
NowFunction · 0.50

Tested by

no test coverage detected