30 #include <unittest-support.h>
33 static const gchar *suitename =
"/qof/qof-string-cache";
34 void test_suite_qof_string_cache (
void );
40 G_GNUC_UNUSED
static void
41 setup(
Fixture *fixture, gconstpointer pData )
46 G_GNUC_UNUSED
static void
47 teardown(
Fixture *fixture, gconstpointer pData )
53 test_qof_string_cache(
void )
63 strncpy(str,
"str1",
sizeof(str));
65 g_assert(str1_1 != str);
67 g_assert(str1_1 == str1_2);
70 g_assert(str1_1 == str1_3);
73 strncpy(str,
"str2",
sizeof(str));
75 strncpy(str,
"str1",
sizeof(str));
77 g_assert(str1_1 != str1_4);
81 test_suite_qof_string_cache (
void )
83 GNC_TEST_ADD_FUNC( suitename,
"string-cache", test_qof_string_cache);
void qof_string_cache_destroy(void)
void qof_string_cache_remove(gconstpointer key)
gpointer qof_string_cache_insert(gconstpointer key)
void qof_string_cache_init(void)