tbl 19 lib/common/tests/strings/pcmk__guint_from_hash_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 23 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, NULL, 123, &result), EINVAL); tbl 25 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_destroy(tbl); tbl 31 lib/common/tests/strings/pcmk__guint_from_hash_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 34 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "abc", 123, &result), pcmk_rc_ok); tbl 37 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_destroy(tbl); tbl 43 lib/common/tests/strings/pcmk__guint_from_hash_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 46 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_insert(tbl, strdup("abc"), strdup("123")); tbl 48 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "abc", 456, &result), pcmk_rc_ok); tbl 51 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_destroy(tbl); tbl 57 lib/common/tests/strings/pcmk__guint_from_hash_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 60 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_insert(tbl, strdup("negative"), strdup("-3")); tbl 61 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_insert(tbl, strdup("toobig"), strdup("20000000000000000")); tbl 62 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_insert(tbl, strdup("baddata"), strdup("asdf")); tbl 64 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "negative", 456, &result), ERANGE); tbl 67 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "toobig", 456, &result), ERANGE); tbl 70 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "baddata", 456, &result), EINVAL); tbl 73 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_destroy(tbl); tbl 25 lib/common/tests/strings/pcmk__str_table_dup_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 28 lib/common/tests/strings/pcmk__str_table_dup_test.c copy = pcmk__str_table_dup(tbl); tbl 31 lib/common/tests/strings/pcmk__str_table_dup_test.c g_hash_table_destroy(tbl); tbl 38 lib/common/tests/strings/pcmk__str_table_dup_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 41 lib/common/tests/strings/pcmk__str_table_dup_test.c g_hash_table_insert(tbl, strdup("abc"), strdup("123")); tbl 42 lib/common/tests/strings/pcmk__str_table_dup_test.c g_hash_table_insert(tbl, strdup("def"), strdup("456")); tbl 43 lib/common/tests/strings/pcmk__str_table_dup_test.c g_hash_table_insert(tbl, strdup("ghi"), strdup("789")); tbl 45 lib/common/tests/strings/pcmk__str_table_dup_test.c copy = pcmk__str_table_dup(tbl); tbl 48 lib/common/tests/strings/pcmk__str_table_dup_test.c assert_string_equal(g_hash_table_lookup(tbl, "abc"), "123"); tbl 49 lib/common/tests/strings/pcmk__str_table_dup_test.c assert_string_equal(g_hash_table_lookup(tbl, "def"), "456"); tbl 50 lib/common/tests/strings/pcmk__str_table_dup_test.c assert_string_equal(g_hash_table_lookup(tbl, "ghi"), "789"); tbl 52 lib/common/tests/strings/pcmk__str_table_dup_test.c g_hash_table_destroy(tbl); tbl 19 lib/common/tests/strings/pcmk__strikey_table_test.c GHashTable *tbl = NULL; tbl 21 lib/common/tests/strings/pcmk__strikey_table_test.c tbl = pcmk__strikey_table(free, free); tbl 22 lib/common/tests/strings/pcmk__strikey_table_test.c assert_non_null(tbl); tbl 24 lib/common/tests/strings/pcmk__strikey_table_test.c assert_true(g_hash_table_insert(tbl, strdup("key-abc"), strdup("val-abc"))); tbl 25 lib/common/tests/strings/pcmk__strikey_table_test.c assert_int_equal(g_hash_table_size(tbl), 1); tbl 26 lib/common/tests/strings/pcmk__strikey_table_test.c assert_string_equal(g_hash_table_lookup(tbl, "key-abc"), "val-abc"); tbl 28 lib/common/tests/strings/pcmk__strikey_table_test.c assert_false(g_hash_table_insert(tbl, strdup("key-abc"), strdup("val-def"))); tbl 29 lib/common/tests/strings/pcmk__strikey_table_test.c assert_int_equal(g_hash_table_size(tbl), 1); tbl 30 lib/common/tests/strings/pcmk__strikey_table_test.c assert_string_equal(g_hash_table_lookup(tbl, "key-abc"), "val-def"); tbl 32 lib/common/tests/strings/pcmk__strikey_table_test.c assert_false(g_hash_table_insert(tbl, strdup("key-ABC"), strdup("val-ABC"))); tbl 33 lib/common/tests/strings/pcmk__strikey_table_test.c assert_int_equal(g_hash_table_size(tbl), 1); tbl 34 lib/common/tests/strings/pcmk__strikey_table_test.c assert_string_equal(g_hash_table_lookup(tbl, "key-ABC"), "val-ABC"); tbl 36 lib/common/tests/strings/pcmk__strikey_table_test.c g_hash_table_destroy(tbl); tbl 19 lib/common/tests/strings/pcmk__strkey_table_test.c GHashTable *tbl = NULL; tbl 21 lib/common/tests/strings/pcmk__strkey_table_test.c tbl = pcmk__strkey_table(free, free); tbl 22 lib/common/tests/strings/pcmk__strkey_table_test.c assert_non_null(tbl); tbl 24 lib/common/tests/strings/pcmk__strkey_table_test.c assert_true(g_hash_table_insert(tbl, strdup("key-abc"), strdup("val-abc"))); tbl 25 lib/common/tests/strings/pcmk__strkey_table_test.c assert_int_equal(g_hash_table_size(tbl), 1); tbl 26 lib/common/tests/strings/pcmk__strkey_table_test.c assert_string_equal(g_hash_table_lookup(tbl, "key-abc"), "val-abc"); tbl 28 lib/common/tests/strings/pcmk__strkey_table_test.c assert_false(g_hash_table_insert(tbl, strdup("key-abc"), strdup("val-def"))); tbl 29 lib/common/tests/strings/pcmk__strkey_table_test.c assert_int_equal(g_hash_table_size(tbl), 1); tbl 30 lib/common/tests/strings/pcmk__strkey_table_test.c assert_string_equal(g_hash_table_lookup(tbl, "key-abc"), "val-def"); tbl 32 lib/common/tests/strings/pcmk__strkey_table_test.c assert_true(g_hash_table_insert(tbl, strdup("key-ABC"), strdup("val-abc"))); tbl 33 lib/common/tests/strings/pcmk__strkey_table_test.c assert_int_equal(g_hash_table_size(tbl), 2); tbl 34 lib/common/tests/strings/pcmk__strkey_table_test.c assert_string_equal(g_hash_table_lookup(tbl, "key-ABC"), "val-abc"); tbl 36 lib/common/tests/strings/pcmk__strkey_table_test.c g_hash_table_destroy(tbl); tbl 20 lib/common/tests/utils/crm_meta_value_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 23 lib/common/tests/utils/crm_meta_value_test.c assert_null(crm_meta_value(tbl, NULL)); tbl 25 lib/common/tests/utils/crm_meta_value_test.c g_hash_table_destroy(tbl); tbl 31 lib/common/tests/utils/crm_meta_value_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 33 lib/common/tests/utils/crm_meta_value_test.c assert_null(crm_meta_value(tbl, XML_RSC_ATTR_NOTIFY)); tbl 34 lib/common/tests/utils/crm_meta_value_test.c assert_null(crm_meta_value(tbl, XML_RSC_ATTR_STICKINESS)); tbl 36 lib/common/tests/utils/crm_meta_value_test.c g_hash_table_destroy(tbl); tbl 42 lib/common/tests/utils/crm_meta_value_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 44 lib/common/tests/utils/crm_meta_value_test.c g_hash_table_insert(tbl, crm_meta_name(XML_RSC_ATTR_NOTIFY), strdup("1")); tbl 45 lib/common/tests/utils/crm_meta_value_test.c g_hash_table_insert(tbl, crm_meta_name(XML_RSC_ATTR_STICKINESS), strdup("2")); tbl 47 lib/common/tests/utils/crm_meta_value_test.c assert_string_equal(crm_meta_value(tbl, XML_RSC_ATTR_NOTIFY), "1"); tbl 48 lib/common/tests/utils/crm_meta_value_test.c assert_string_equal(crm_meta_value(tbl, XML_RSC_ATTR_STICKINESS), "2"); tbl 50 lib/common/tests/utils/crm_meta_value_test.c g_hash_table_destroy(tbl);