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

Function BOOST_AUTO_TEST_CASE

test/base-value.cpp:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9BOOST_AUTO_TEST_SUITE(base_value)
10
11BOOST_AUTO_TEST_CASE(scalar)
12{
13 Value v;
14
15 v = 3;
16 BOOST_CHECK(v.IsScalar());
17
18 v = "hello";
19 BOOST_CHECK(v.IsScalar());
20
21 v = Empty;
22 BOOST_CHECK(!v.IsScalar());
23}
24
25BOOST_AUTO_TEST_CASE(convert)
26{

Callers

nothing calls this directly

Calls 4

IsScalarMethod · 0.80
IsStringMethod · 0.80
IsEmptyMethod · 0.45
GetTypeNameMethod · 0.45

Tested by

no test coverage detected