MCPcopy Create free account
hub / github.com/AshampooSystems/boden / OnTestProgramEnd

Method OnTestProgramEnd

tests/test_main.cpp:117–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116 void OnTestEnd(const testing::TestInfo & /*testInfo*/) override { updateProgressLabel(); }
117 void OnTestProgramEnd(const testing::UnitTest &unit_test) override
118 {
119 testing::UnitTest::GetInstance()->listeners().Release(this);
120
121 bdn::App()->dispatchQueue()->dispatchAsync([]() {
122 ((TestApplicationController *)bdn::App()->applicationController().get())
123 ->exit(testing::UnitTest::GetInstance()->failed_test_count() > 0 ? 1 : 0);
124 });
125 }
126
127 private:
128 std::shared_ptr<bdn::ui::Window> _window;

Callers

nothing calls this directly

Calls 6

AppFunction · 0.85
dispatchAsyncMethod · 0.80
dispatchQueueMethod · 0.80
exitMethod · 0.80
applicationControllerMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected