5 #ifndef TEST_ENGINE_STUFF_H
6 #define TEST_ENGINE_STUFF_H
18 void random_timespec_zero_nsec (gboolean zero_nsec);
19 void random_timespec_usec_resolution (gboolean usec_resolution);
21 KvpValue* get_random_kvp_value(
int type);
29 bin_data* get_random_binary_data(
void);
31 KvpFrame* get_random_kvp_frame(
void);
34 GList* get_random_glist(
void);
36 void random_glist_strings_only (gboolean strings_only);
38 void set_max_kvp_depth (gint max_kvp_depth);
39 void set_max_kvp_frame_elements (gint max_kvp_frame_elements);
40 void set_max_account_tree_depth (gint max_tree_depth);
41 void set_max_accounts_per_level (gint max_accounts);
54 const char *get_random_commodity_namespace(
void);
61 SPLIT_KVP_QT = 1 << 2,
62 TRANS_KVP_QT = 1 << 3,
63 ACCOUNT_KVP_QT = 1 << 4,
70 TestQueryTypes get_random_query_type (
void);
71 void trans_query_include_price (gboolean include_amounts);
73 QofBook * get_random_book (
void);
76 void add_random_transactions_to_book (
QofBook *book, gint num_transactions);
82 void make_random_changes_to_split (
Split *split);
83 void make_random_changes_to_transaction (
QofBook *book,
85 void make_random_changes_to_transaction_and_splits (
QofBook *book,
88 void make_random_changes_to_account (
QofBook *book,
Account *account);
89 void make_random_changes_to_level (
QofBook *book,
Account *parent);
90 void make_random_changes_to_book (
QofBook *book);
91 void make_random_changes_to_session (
QofSession *session);
93 SchedXaction* add_daily_sx(gchar *name,
const GDate *start,
const GDate *end,
const GDate *last_occur);
94 SchedXaction* add_once_sx(gchar *name,
const GDate *when);
a simple price database for gnucash
KvpValueType
possible types in the union KvpValue
Use a 64-bit unsigned int timespec.
struct _QofQuery QofQuery
struct KvpFrameImpl KvpFrame
Scheduled Transactions public handling routines.
struct KvpValueImpl KvpValue