MCPcopy Create free account
hub / github.com/Icinga/icinga2 / MakeCheckResult

Function MakeCheckResult

test/icinga-checkresult.cpp:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15BOOST_AUTO_TEST_SUITE(icinga_checkresult)
16
17static CheckResult::Ptr MakeCheckResult(ServiceState state)
18{
19 CheckResult::Ptr cr = new CheckResult();
20
21 cr->SetState(state);
22
23 double now = Utility::GetTime();
24 cr->SetScheduleStart(now);
25 cr->SetScheduleEnd(now);
26 cr->SetExecutionStart(now);
27 cr->SetExecutionEnd(now);
28
29 return cr;
30}
31
32static void NotificationHandler(const Checkable::Ptr& checkable, NotificationType type)
33{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected