32 #include "cashobjects.h"
33 #include "test-stuff.h"
39 static void test_null_guid(
void)
48 do_test(!
guid_equal(&g, gp),
"two guids equal");
64 sess = get_random_session ();
66 do_test ((NULL != book),
"book not created");
71 for (i = 0; i < NENT; i++)
73 ent = g_object_new(QOF_TYPE_INSTANCE, NULL);
75 ent = g_object_new(QOF_TYPE_INSTANCE,
"guid", &guid, NULL);
85 qof_session_destroy(sess);
89 main (
int argc,
char **argv)
92 if (cashobjects_register())
void guid_replace(GncGUID *guid)
QofInstance * qof_collection_lookup_entity(const QofCollection *, const GncGUID *)
GncGUID guid_new_return(void)
QofBook * qof_session_get_book(const QofSession *session)
gboolean guid_equal(const GncGUID *guid_1, const GncGUID *guid_2)
void qof_collection_insert_entity(QofCollection *, QofInstance *)
void qof_close(void)
Safely close down the Query Object Framework.
QofIdType qof_collection_get_type(const QofCollection *)
const GncGUID * guid_null(void)
QofCollection * qof_book_get_collection(const QofBook *, QofIdType)
void qof_init(void)
Initialise the Query Object Framework.