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

Function BOOST_AUTO_TEST_CASE

test/base-match.cpp:11–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9BOOST_AUTO_TEST_SUITE(base_match)
10
11BOOST_AUTO_TEST_CASE(tolong)
12{
13 BOOST_CHECK(Utility::Match("*", "hello"));
14 BOOST_CHECK(!Utility::Match("\\**", "hello"));
15 BOOST_CHECK(Utility::Match("\\**", "*ello"));
16 BOOST_CHECK(Utility::Match("?e*l?", "hello"));
17 BOOST_CHECK(Utility::Match("?e*l?", "helo"));
18 BOOST_CHECK(!Utility::Match("world", "hello"));
19 BOOST_CHECK(!Utility::Match("hee*", "hello"));
20 BOOST_CHECK(Utility::Match("he??o", "hello"));
21 BOOST_CHECK(Utility::Match("he?", "hel"));
22 BOOST_CHECK(Utility::Match("he*", "hello"));
23 BOOST_CHECK(Utility::Match("he*o", "heo"));
24 BOOST_CHECK(Utility::Match("he**o", "heo"));
25 BOOST_CHECK(Utility::Match("he**o", "hello"));
26}
27
28BOOST_AUTO_TEST_SUITE_END()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected