28 #include "cashobjects.h"
30 #include "test-stuff.h"
31 #include "test-dbi-stuff.h"
32 #include "test-dbi-business-stuff.h"
33 #include <unittest-support.h>
44 G_GNUC_UNUSED
static QofLogModule log_module =
"test-dbi";
47 compare_single_customer(
QofInstance* inst, gpointer user_data )
62 do_compare( book_1, book_2, GNC_ID_CUSTOMER, compare_single_customer,
"Customer lists match" );
66 compare_single_employee(
QofInstance* inst, gpointer user_data )
81 do_compare( book_1, book_2, GNC_ID_EMPLOYEE, compare_single_employee,
"Employee lists match" );
85 compare_single_invoice(
QofInstance* inst, gpointer user_data )
100 do_compare( book_1, book_2, GNC_ID_INVOICE, compare_single_invoice,
"Invoice lists match" );
104 compare_single_job(
QofInstance* inst, gpointer user_data )
107 GncJob* job_1 = GNC_JOB(inst);
110 if (!gncJobEqual( job_1, job_2 ))
112 info->result = FALSE;
119 do_compare( book_1, book_2, GNC_ID_JOB, compare_single_job,
"Job lists match" );
123 compare_single_vendor(
QofInstance* inst, gpointer user_data )
131 info->result = FALSE;
138 do_compare( book_1, book_2, GNC_ID_VENDOR, compare_single_vendor,
"Vendor lists match" );
142 compare_single_billterm(
QofInstance* inst, gpointer user_data )
150 info->result = FALSE;
157 do_compare( book_1, book_2, GNC_ID_BILLTERM, compare_single_billterm,
"Billterms lists match" );
161 compare_single_taxtable(
QofInstance* inst, gpointer user_data )
167 if (!gncTaxTableEqual( tt_1, tt_2 ))
169 info->result = FALSE;
176 do_compare( book_1, book_2, GNC_ID_TAXTABLE, compare_single_taxtable,
"TaxTable lists match" );
182 compare_billterms( book_1, book_2 );
183 compare_taxtables( book_1, book_2 );
185 compare_customers( book_1, book_2 );
186 compare_employees( book_1, book_2 );
187 compare_invoices( book_1, book_2 );
188 compare_jobs( book_1, book_2 );
189 compare_vendors( book_1, book_2 );
const GncGUID * qof_instance_get_guid(gconstpointer)
API for Transactions and Splits (journal entries)
gboolean gncBillTermEqual(const GncBillTerm *a, const GncBillTerm *b)
Account handling public routines.
Business Invoice Interface.
gboolean gncCustomerEqual(const GncCustomer *a, const GncCustomer *b)
gboolean gncVendorEqual(const GncVendor *a, const GncVendor *b)
gboolean gncInvoiceEqual(const GncInvoice *a, const GncInvoice *b)
API for Transactions and Splits (journal entries)
Commodity handling public routines.
const gchar * QofLogModule
gboolean gncEmployeeEqual(const GncEmployee *a, const GncEmployee *b)