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
David Seifert c06bc18dc4
Add missing `#include <cstdint>`
1 year ago
..
CMakeLists.txt
README
gtest-gnc-datetime.cpp [gnc-datetime] improve CSV date parser with ICU and boost 2 years ago
gtest-gnc-euro.cpp [gtest-gnc-euro] add rounding test 2 years ago
gtest-gnc-int128.cpp Add missing `#include <cstdint>` 1 year ago
gtest-gnc-numeric.cpp Add missing `#include <cstdint>` 1 year ago
gtest-gnc-option.cpp Add missing `#include <cstdint>` 1 year ago
gtest-gnc-optiondb.cpp Add missing `#include <cstdint>` 1 year ago
gtest-gnc-rational.cpp Add missing `#include <cstdint>` 1 year ago
gtest-gnc-timezone.cpp
gtest-import-map.cpp Add missing `#include <cstdint>` 1 year ago
gtest-qofevent.cpp
gtest-qofquerycore.cpp
test-account-object.cpp
test-address.c
test-business.c
test-commodities.cpp [test-commodities.cpp] test stability of c_str names 2 years ago
test-customer.c
test-employee.c
test-engine-kvp-properties.c
test-engine.c
test-gnc-date.c Update test-gnc-date.c 2 years ago
test-gnc-guid-old.cpp
test-gnc-guid.cpp
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-kvp-frame.cpp Add missing `#include <cstdint>` 1 year ago
test-kvp-value.cpp Add missing `#include <cstdint>` 1 year ago
test-load-engine.c
test-lots.cpp
test-numeric.cpp
test-object.c
test-qof-string-cache.c
test-qof.c
test-qofbackend.c
test-qofbook.c Fix UAF in xaccFreeSplit. 2 years ago
test-qofinstance.cpp
test-qofobject.c Fix UAF in xaccFreeSplit. 2 years ago
test-qofsession-old.cpp
test-qofsession.cpp [test-qofsession] plugs Account* leak 3 years 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
utest-Account.cpp [Account.cpp] small modification xaccAccountSetLastNum 1 year ago
utest-Budget.c
utest-Entry.c
utest-Invoice.c use xaccAccountGetSplitsSize 2 years ago
utest-Split.cpp [SplitP.hpp] rename to .hpp 2 years ago
utest-Transaction.cpp [Transaction|Split.cpp] Remove Reg2 unused functions 2 years 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."