28 #include "cashobjects.h"
33 #include "test-stuff.h"
45 session = qof_session_new ();
48 act1 = get_random_account(book);
49 do_test(act1 != NULL,
"random account created");
51 act2 = get_random_account(book);
52 do_test(act2 != NULL,
"random account created");
54 spl = get_random_split(book, act1, NULL);
55 do_test(spl != NULL,
"random split created");
65 main (
int argc,
char **argv)
68 if (cashobjects_register())
void xaccLogDisable(void)
QofBook * qof_session_get_book(const QofSession *session)
All type declarations for the whole Gnucash engine.
API for the transaction logger.
void qof_close(void)
Safely close down the Query Object Framework.
Account * xaccSplitGetAccount(const Split *s)
void qof_init(void)
Initialise the Query Object Framework.
API for Transactions and Splits (journal entries)