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

Method TransferFromCapturer

library/cpp/testing/unittest/junit.cpp:211–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void TJUnitProcessor::TransferFromCapturer(THolder<TJUnitProcessor::TOutputCapturer>& capturer, TString& out, IOutputStream& outStream) {
212 if (capturer) {
213 capturer->Uncapture();
214 {
215 TFileInput fileStream(capturer->GetTmpFileName());
216 TransferData(&fileStream, &outStream);
217 out = SanitizeString(capturer->GetCapturedString());
218 }
219 capturer = nullptr;
220 }
221}
222
223void TJUnitProcessor::OnFinish(const TFinish* descr) {
224 if (!GetForkTests() || GetIsForked()) {

Callers

nothing calls this directly

Calls 5

TransferDataFunction · 0.85
SanitizeStringFunction · 0.85
UncaptureMethod · 0.80
GetTmpFileNameMethod · 0.80
GetCapturedStringMethod · 0.45

Tested by

no test coverage detected