This source file includes following definitions.
- is_probe_test
1
2
3
4
5
6
7
8
9
10 #include <crm_internal.h>
11
12 #include <crm/common/unittest_internal.h>
13
14 static void
15 is_probe_test(void **state)
16 {
17 assert_false(pcmk_is_probe(NULL, 0));
18 assert_false(pcmk_is_probe("", 0));
19 assert_false(pcmk_is_probe("blahblah", 0));
20 assert_false(pcmk_is_probe("monitor", 1));
21 assert_true(pcmk_is_probe("monitor", 0));
22 }
23
24 PCMK__UNIT_TEST(NULL, NULL,
25 cmocka_unit_test(is_probe_test))