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

Method AfterTest

library/cpp/testing/unittest/registar.cpp:385–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385void NUnitTest::TTestBase::AfterTest() {
386 TearDown();
387
388 TVector<std::function<void()>> afterTestFunctions;
389 with_lock (AfterTestFunctionsLock_) {
390 afterTestFunctions.swap(AfterTestFunctions_);
391 }
392
393 for (auto i = afterTestFunctions.rbegin(); i != afterTestFunctions.rend(); ++i) {
394 std::function<void()>& f = *i;
395 if (f) {
396 f();
397 }
398 }
399}
400
401bool NUnitTest::TTestBase::GetIsForked() const {
402 return Processor()->GetIsForked();

Callers 1

~TCleanUpMethod · 0.80

Calls 3

fFunction · 0.50
rbeginMethod · 0.45
rendMethod · 0.45

Tested by

no test coverage detected