gnucash master: Kvp-Frame test cases

John Ralls jralls at
Sat Dec 20 13:49:21 EST 2014

Updated	 via (commit)
	from (commit)

commit 7d5f0a66a0aaa91f61038e2645a6ec48ba5418e7
Author: lmat <dartme18 at>
Date:   Mon Nov 17 16:31:17 2014 -0500

    Kvp-Frame test cases
    Adding google tests for many of Kvp Frame's member functions. One
    function in KvpFrameImpl, for_each_slot, should probably be something
    template <typename T> void
    for_each_slot (T & t, void * data) const
        [&t, data] (... a)
            t(a, data);
    This way, we could create a functor mock object for testing purposes,
    but of course, pointers would still behave correctly.

Summary of changes:
 src/libqof/qof/test/        |  6 ++-
 src/libqof/qof/test/test-kvp-frame.cpp | 90 ++++++++++++++++++++++++++++++++++
 2 files changed, 94 insertions(+), 2 deletions(-)
 create mode 100644 src/libqof/qof/test/test-kvp-frame.cpp

More information about the gnucash-patches mailing list