tbl 23 lib/common/tests/strings/pcmk__guint_from_hash_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 27 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, NULL, 123, &result), EINVAL); tbl 29 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_destroy(tbl); tbl 35 lib/common/tests/strings/pcmk__guint_from_hash_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 38 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 41 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_destroy(tbl); tbl 47 lib/common/tests/strings/pcmk__guint_from_hash_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 50 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_insert(tbl, strdup("abc"), strdup("123")); tbl 52 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 55 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_destroy(tbl); tbl 61 lib/common/tests/strings/pcmk__guint_from_hash_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 64 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_insert(tbl, strdup("negative"), strdup("-3")); tbl 65 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_insert(tbl, strdup("toobig"), strdup("20000000000000000")); tbl 67 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "negative", 456, &result), ERANGE); tbl 70 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "toobig", 456, &result), ERANGE); tbl 73 lib/common/tests/strings/pcmk__guint_from_hash_test.c g_hash_table_destroy(tbl); tbl 29 lib/common/tests/strings/pcmk__str_table_dup_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 32 lib/common/tests/strings/pcmk__str_table_dup_test.c copy = pcmk__str_table_dup(tbl); tbl 35 lib/common/tests/strings/pcmk__str_table_dup_test.c g_hash_table_destroy(tbl); tbl 42 lib/common/tests/strings/pcmk__str_table_dup_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 45 lib/common/tests/strings/pcmk__str_table_dup_test.c g_hash_table_insert(tbl, strdup("abc"), strdup("123")); tbl 46 lib/common/tests/strings/pcmk__str_table_dup_test.c g_hash_table_insert(tbl, strdup("def"), strdup("456")); tbl 47 lib/common/tests/strings/pcmk__str_table_dup_test.c g_hash_table_insert(tbl, strdup("ghi"), strdup("789")); tbl 49 lib/common/tests/strings/pcmk__str_table_dup_test.c copy = pcmk__str_table_dup(tbl); tbl 52 lib/common/tests/strings/pcmk__str_table_dup_test.c assert_string_equal(g_hash_table_lookup(tbl, "abc"), "123"); tbl 53 lib/common/tests/strings/pcmk__str_table_dup_test.c assert_string_equal(g_hash_table_lookup(tbl, "def"), "456"); tbl 54 lib/common/tests/strings/pcmk__str_table_dup_test.c assert_string_equal(g_hash_table_lookup(tbl, "ghi"), "789"); tbl 56 lib/common/tests/strings/pcmk__str_table_dup_test.c g_hash_table_destroy(tbl); tbl 23 lib/common/tests/strings/pcmk__strikey_table_test.c GHashTable *tbl = NULL; tbl 25 lib/common/tests/strings/pcmk__strikey_table_test.c tbl = pcmk__strikey_table(free, free); tbl 26 lib/common/tests/strings/pcmk__strikey_table_test.c assert_non_null(tbl); tbl 28 lib/common/tests/strings/pcmk__strikey_table_test.c assert_true(g_hash_table_insert(tbl, strdup("key-abc"), strdup("val-abc"))); 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-abc"); tbl 32 lib/common/tests/strings/pcmk__strikey_table_test.c assert_false(g_hash_table_insert(tbl, strdup("key-abc"), strdup("val-def"))); 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-def"); tbl 36 lib/common/tests/strings/pcmk__strikey_table_test.c assert_false(g_hash_table_insert(tbl, strdup("key-ABC"), strdup("val-ABC"))); tbl 37 lib/common/tests/strings/pcmk__strikey_table_test.c assert_int_equal(g_hash_table_size(tbl), 1); tbl 38 lib/common/tests/strings/pcmk__strikey_table_test.c assert_string_equal(g_hash_table_lookup(tbl, "key-ABC"), "val-ABC"); tbl 40 lib/common/tests/strings/pcmk__strikey_table_test.c g_hash_table_destroy(tbl); tbl 23 lib/common/tests/strings/pcmk__strkey_table_test.c GHashTable *tbl = NULL; tbl 25 lib/common/tests/strings/pcmk__strkey_table_test.c tbl = pcmk__strkey_table(free, free); tbl 26 lib/common/tests/strings/pcmk__strkey_table_test.c assert_non_null(tbl); tbl 28 lib/common/tests/strings/pcmk__strkey_table_test.c assert_true(g_hash_table_insert(tbl, strdup("key-abc"), strdup("val-abc"))); 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-abc"); tbl 32 lib/common/tests/strings/pcmk__strkey_table_test.c assert_false(g_hash_table_insert(tbl, strdup("key-abc"), strdup("val-def"))); tbl 33 lib/common/tests/strings/pcmk__strkey_table_test.c assert_int_equal(g_hash_table_size(tbl), 1); tbl 34 lib/common/tests/strings/pcmk__strkey_table_test.c assert_string_equal(g_hash_table_lookup(tbl, "key-abc"), "val-def"); tbl 36 lib/common/tests/strings/pcmk__strkey_table_test.c assert_true(g_hash_table_insert(tbl, strdup("key-ABC"), strdup("val-abc"))); tbl 37 lib/common/tests/strings/pcmk__strkey_table_test.c assert_int_equal(g_hash_table_size(tbl), 2); tbl 38 lib/common/tests/strings/pcmk__strkey_table_test.c assert_string_equal(g_hash_table_lookup(tbl, "key-ABC"), "val-abc"); tbl 40 lib/common/tests/strings/pcmk__strkey_table_test.c g_hash_table_destroy(tbl); tbl 24 lib/common/tests/utils/crm_meta_value_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 27 lib/common/tests/utils/crm_meta_value_test.c assert_null(crm_meta_value(tbl, NULL)); tbl 29 lib/common/tests/utils/crm_meta_value_test.c g_hash_table_destroy(tbl); tbl 35 lib/common/tests/utils/crm_meta_value_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 37 lib/common/tests/utils/crm_meta_value_test.c assert_null(crm_meta_value(tbl, XML_RSC_ATTR_NOTIFY)); tbl 38 lib/common/tests/utils/crm_meta_value_test.c assert_null(crm_meta_value(tbl, XML_RSC_ATTR_STICKINESS)); tbl 40 lib/common/tests/utils/crm_meta_value_test.c g_hash_table_destroy(tbl); tbl 46 lib/common/tests/utils/crm_meta_value_test.c GHashTable *tbl = pcmk__strkey_table(free, free); tbl 48 lib/common/tests/utils/crm_meta_value_test.c g_hash_table_insert(tbl, crm_meta_name(XML_RSC_ATTR_NOTIFY), strdup("1")); tbl 49 lib/common/tests/utils/crm_meta_value_test.c g_hash_table_insert(tbl, crm_meta_name(XML_RSC_ATTR_STICKINESS), strdup("2")); tbl 51 lib/common/tests/utils/crm_meta_value_test.c assert_string_equal(crm_meta_value(tbl, XML_RSC_ATTR_NOTIFY), "1"); tbl 52 lib/common/tests/utils/crm_meta_value_test.c assert_string_equal(crm_meta_value(tbl, XML_RSC_ATTR_STICKINESS), "2"); tbl 54 lib/common/tests/utils/crm_meta_value_test.c g_hash_table_destroy(tbl);