You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gnucash/libgnucash/engine/test
Christopher Lam c3e4f374a9
[account.cpp] gnc_account_child_index non-child acct should return -1
2 months ago
..
CMakeLists.txt Bug 799480 - Fails to build with ICU 76 1 year ago
README
gtest-gnc-datetime.cpp Fix GncDateTime tests on Windows. 5 months ago
gtest-gnc-euro.cpp Wrap include of gtest.h and gmock.h with a warning-silencing pragma. 10 months ago
gtest-gnc-int128.cpp Wrap include of gtest.h and gmock.h with a warning-silencing pragma. 10 months ago
gtest-gnc-numeric.cpp Adjust tests to accommodate Win32 special cases. 5 months ago
gtest-gnc-option.cpp Wrap include of gtest.h and gmock.h with a warning-silencing pragma. 10 months ago
gtest-gnc-optiondb.cpp Wrap include of gtest.h and gmock.h with a warning-silencing pragma. 10 months ago
gtest-gnc-rational.cpp Wrap include of gtest.h and gmock.h with a warning-silencing pragma. 10 months ago
gtest-gnc-timezone.cpp Wrap include of gtest.h and gmock.h with a warning-silencing pragma. 10 months ago
gtest-import-map.cpp Wrap include of gtest.h and gmock.h with a warning-silencing pragma. 10 months ago
gtest-qofevent.cpp Wrap include of gtest.h and gmock.h with a warning-silencing pragma. 10 months ago
gtest-qofquerycore.cpp Wrap include of gtest.h and gmock.h with a warning-silencing pragma. 10 months ago
test-account-object.cpp
test-address.c Valgrind: fix "definitely lost" memory from get_random_string() - test-address 3 years ago
test-business.c
test-commodities.cpp [gnc-commodities.cpp] expose auto_quote_control kvp to test them 8 months ago
test-customer.c Valgrind: fix "definitely lost" memory from get_random_string() - test-customer 3 years ago
test-employee.c Valgrind: fix "definitely lost" memory from get_random_string() - test-employee 3 years ago
test-engine-kvp-properties.c Change g_assert() -> g_assert_true() in tests 3 years ago
test-engine.c
test-gnc-date.c Fix build of test-gnc-date on systems without HAVE_STRUCT_TM_GMTOFF 10 months ago
test-gnc-guid-old.cpp Change g_assert() -> g_assert_true() in tests 3 years ago
test-gnc-guid.cpp [guid.cpp] string->guid should disallow 'g' char 3 months ago
test-gnc-uri-utils.c Doxygen - drop obvious cases of deprecated code 2 years ago
test-group-vs-book.cpp
test-guid.cpp Fix UAF in xaccFreeSplit. 2 years ago
test-job.c [test-job] plug leaks 2 years ago
test-kvp-frame.cpp Wrap include of gtest.h and gmock.h with a warning-silencing pragma. 10 months ago
test-kvp-value.cpp Wrap include of gtest.h and gmock.h with a warning-silencing pragma. 10 months ago
test-load-engine.c
test-lots.cpp
test-numeric.cpp
test-object.c
test-qof-string-cache.c Change g_assert() -> g_assert_true() in tests 3 years ago
test-qof.c
test-qofbackend.c
test-qofbook.c Fix UAF in xaccFreeSplit. 2 years ago
test-qofinstance.cpp Change g_assert() -> g_assert_true() in tests 3 years ago
test-qofobject.c Fix UAF in xaccFreeSplit. 2 years ago
test-qofsession-old.cpp Change g_assert() -> g_assert_true() in tests 3 years ago
test-qofsession.cpp Wrap include of gtest.h and gmock.h with a warning-silencing pragma. 10 months ago
test-query.cpp
test-querynew.c
test-recurrence.c
test-split-vs-account.cpp [AccountP.hpp] .h -> .hpp, remove extern "C" {} wrapper 2 years ago
test-transaction-reversal.cpp
test-transaction-voiding.cpp
test-vendor.c Valgrind: fix "definitely lost" memory from get_random_string() - test-vendor 3 years ago
utest-Account.cpp [account.cpp] gnc_account_child_index non-child acct should return -1 2 months ago
utest-Budget.c Change g_assert() -> g_assert_true() in tests 3 years ago
utest-Entry.c Change g_assert() -> g_assert_true() in tests 3 years ago
utest-Invoice.c use xaccAccountGetSplitsSize 2 years ago
utest-Split.cpp Bug 343711 - Splits to Imbalance-USD do not disappear when zero-valued. 6 months ago
utest-Transaction.cpp [Transaction.cpp] use qof_instance kvp API for Time64, with bugfix 8 months ago
utest-gnc-pricedb.c [gnc-pricedb.h] remove unused gnc_pricedb_substitute_commodity 2 years ago

README


This directory contains unit test cases to exercise basic
GnuCash engine functions.

To run the tests, just do 'make check'


Notes on test of dirty/clean flag:
---------------------------------
This test is currently performed in part in
test-customer
test-employee
test-job
test-vendor

The test cases will check if the dirty flag is unset on creation
of an object and if the dirty flag is set when the object
is modified.

There used to be a test also to check if the dirty flag is
cleared again upon committing the change.
This test has been removed, because it can only be successful
if a backend is set up. That's because the 'dirty' flag is
supposed to be cleared by the backend only.

We are in the engine test code however. In here it's not possible
to load a backend without creating some circular dependencies
between gnucash modules.

Just for completeness, this was said on the dirty flag tests before
these test cases got moved to the engine:
"An object cannot be marked 'clean' unless it has actually
been saved to a file or sql db. (Or, in the case of the file
backend, the 'dirtiness' of the data has been duly noted, and
will be taken care of for the next file save.
Until its saved, it lives in perpetual dirtiness. Thus, the
test cases need to specify a backend, then do the commit,
then test the dirty flag.

Actually, the use of the dirty flag in gnucash is, at this time,
mildly ambiguous, and its semantics are not clearly defined."