|
GnuCash c935c2f+
|
$brief This file declares testing functions for the engine. More...
#include <glib.h>#include <stdlib.h>#include <stdint.h>#include "qof.h"#include "Query.h"#include "gnc-pricedb.h"#include "SchedXaction.h"Go to the source code of this file.
Data Structures | |
| struct | bin_data |
Functions | |
| time64 | get_random_time (void) |
| KvpValue * | get_random_kvp_value (int type) |
| bin_data * | get_random_binary_data (void) |
| KvpFrame * | get_random_kvp_frame (void) |
| gnc_numeric | get_random_gnc_numeric (int64_t) |
| GncGUID * | get_random_guid (void) |
| void | set_max_kvp_depth (gint max_kvp_depth) |
| void | set_max_kvp_frame_elements (gint max_kvp_frame_elements) |
| void | set_max_account_tree_depth (gint max_tree_depth) |
| void | set_max_accounts_per_level (gint max_accounts) |
| GNCPrice * | get_random_price (QofBook *book) |
| gboolean | make_random_pricedb (QofBook *book, GNCPriceDB *pdb) |
| GNCPriceDB * | get_random_pricedb (QofBook *book) |
| Account * | get_random_account_tree (QofBook *book) |
| Account * | get_random_account (QofBook *book) |
| Split * | get_random_split (QofBook *book, Account *account, Transaction *trn) |
| Transaction * | get_random_transaction (QofBook *book) |
| Transaction * | get_random_transaction_with_currency (QofBook *book, gnc_commodity *currency, GList *account_list) |
| gnc_commodity * | get_random_commodity (QofBook *book) |
| const char * | get_random_commodity_namespace (void) |
| QofQuery * | get_random_query (void) |
| QofQuery * | make_trans_query (Transaction *trans, TestQueryTypes query_types) |
| TestQueryTypes | get_random_query_type (void) |
| void | trans_query_include_price (gboolean include_amounts) |
| QofBook * | get_random_book (void) |
| QofSession * | get_random_session (void) |
| void | add_random_transactions_to_book (QofBook *book, gint num_transactions) |
| void | make_random_changes_to_commodity (gnc_commodity *com) |
| void | make_random_changes_to_commodity_table (gnc_commodity_table *table) |
| void | make_random_changes_to_price (QofBook *book, GNCPrice *price) |
| void | make_random_changes_to_pricedb (QofBook *book, GNCPriceDB *pdb) |
| void | make_random_changes_to_split (Split *split) |
| void | make_random_changes_to_transaction (QofBook *book, Transaction *trans) |
| void | make_random_changes_to_transaction_and_splits (QofBook *book, Transaction *trans, GList *accounts) |
| void | make_random_changes_to_account (QofBook *book, Account *account) |
| void | make_random_changes_to_level (QofBook *book, Account *parent) |
| void | make_random_changes_to_book (QofBook *book) |
| void | make_random_changes_to_session (QofSession *session) |
| SchedXaction * | add_daily_sx (const gchar *name, const GDate *start, const GDate *end, const GDate *last_occur) |
| SchedXaction * | add_once_sx (const gchar *name, const GDate *when) |
| void | remove_sx (SchedXaction *sx) |
$brief This file declares testing functions for the engine.
Definition in file test-engine-stuff.h.
| enum TestQueryTypes |
Definition at line 84 of file test-engine-stuff.h.
| SchedXaction * add_daily_sx | ( | const gchar * | name, |
| const GDate * | start, | ||
| const GDate * | end, | ||
| const GDate * | last_occur | ||
| ) |
Definition at line 2080 of file test-engine-stuff.cpp.
| SchedXaction * add_once_sx | ( | const gchar * | name, |
| const GDate * | when | ||
| ) |
Definition at line 2087 of file test-engine-stuff.cpp.
| void add_random_transactions_to_book | ( | QofBook * | book, |
| gint | num_transactions | ||
| ) |
Definition at line 1827 of file test-engine-stuff.cpp.
Definition at line 1136 of file test-engine-stuff.cpp.
Definition at line 831 of file test-engine-stuff.cpp.
| QofBook * get_random_book | ( | void | ) |
Definition at line 1802 of file test-engine-stuff.cpp.
| gnc_commodity * get_random_commodity | ( | QofBook * | book | ) |
Definition at line 481 of file test-engine-stuff.cpp.
| const char * get_random_commodity_namespace | ( | void | ) |
Definition at line 441 of file test-engine-stuff.cpp.
| gnc_numeric get_random_gnc_numeric | ( | int64_t | deno | ) |
Definition at line 366 of file test-engine-stuff.cpp.
| GncGUID * get_random_guid | ( | void | ) |
Definition at line 207 of file test-engine-stuff.cpp.
| KvpFrame * get_random_kvp_frame | ( | void | ) |
Definition at line 349 of file test-engine-stuff.cpp.
| KvpValue * get_random_kvp_value | ( | int | type | ) |
Definition at line 355 of file test-engine-stuff.cpp.
| GNCPrice * get_random_price | ( | QofBook * | book | ) |
Definition at line 630 of file test-engine-stuff.cpp.
| GNCPriceDB * get_random_pricedb | ( | QofBook * | book | ) |
Definition at line 688 of file test-engine-stuff.cpp.
| QofQuery * get_random_query | ( | void | ) |
Definition at line 1636 of file test-engine-stuff.cpp.
| TestQueryTypes get_random_query_type | ( | void | ) |
Definition at line 1888 of file test-engine-stuff.cpp.
| QofSession * get_random_session | ( | void | ) |
Definition at line 1815 of file test-engine-stuff.cpp.
Definition at line 1210 of file test-engine-stuff.cpp.
| time64 get_random_time | ( | void | ) |
Definition at line 198 of file test-engine-stuff.cpp.
| Transaction * get_random_transaction | ( | QofBook * | book | ) |
Definition at line 1435 of file test-engine-stuff.cpp.
| Transaction * get_random_transaction_with_currency | ( | QofBook * | book, |
| gnc_commodity * | currency, | ||
| GList * | account_list | ||
| ) |
Definition at line 1374 of file test-engine-stuff.cpp.
Definition at line 1171 of file test-engine-stuff.cpp.
| void make_random_changes_to_book | ( | QofBook * | book | ) |
Definition at line 1852 of file test-engine-stuff.cpp.
| void make_random_changes_to_commodity | ( | gnc_commodity * | com | ) |
Definition at line 532 of file test-engine-stuff.cpp.
| void make_random_changes_to_commodity_table | ( | gnc_commodity_table * | table | ) |
Definition at line 558 of file test-engine-stuff.cpp.
Definition at line 1008 of file test-engine-stuff.cpp.
| void make_random_changes_to_price | ( | QofBook * | book, |
| GNCPrice * | price | ||
| ) |
Definition at line 596 of file test-engine-stuff.cpp.
| void make_random_changes_to_pricedb | ( | QofBook * | book, |
| GNCPriceDB * | pdb | ||
| ) |
Definition at line 718 of file test-engine-stuff.cpp.
| void make_random_changes_to_session | ( | QofSession * | session | ) |
Definition at line 1865 of file test-engine-stuff.cpp.
| void make_random_changes_to_split | ( | Split * | split | ) |
Definition at line 1310 of file test-engine-stuff.cpp.
| void make_random_changes_to_transaction | ( | QofBook * | book, |
| Transaction * | trans | ||
| ) |
Definition at line 1451 of file test-engine-stuff.cpp.
| void make_random_changes_to_transaction_and_splits | ( | QofBook * | book, |
| Transaction * | trans, | ||
| GList * | accounts | ||
| ) |
Definition at line 914 of file test-engine-stuff.cpp.
| gboolean make_random_pricedb | ( | QofBook * | book, |
| GNCPriceDB * | pdb | ||
| ) |
Definition at line 654 of file test-engine-stuff.cpp.
| QofQuery * make_trans_query | ( | Transaction * | trans, |
| TestQueryTypes | query_types | ||
| ) |
Definition at line 1902 of file test-engine-stuff.cpp.
| void remove_sx | ( | SchedXaction * | sx | ) |
Definition at line 2093 of file test-engine-stuff.cpp.
| void set_max_account_tree_depth | ( | gint | max_tree_depth | ) |
Definition at line 104 of file test-engine-stuff.cpp.
| void set_max_accounts_per_level | ( | gint | max_accounts | ) |
Definition at line 110 of file test-engine-stuff.cpp.
| void set_max_kvp_depth | ( | gint | max_kvp_depth | ) |
Definition at line 116 of file test-engine-stuff.cpp.
| void set_max_kvp_frame_elements | ( | gint | max_kvp_frame_elements | ) |
Definition at line 122 of file test-engine-stuff.cpp.
| void trans_query_include_price | ( | gboolean | include_amounts | ) |
Definition at line 1882 of file test-engine-stuff.cpp.