gnucash master: Kvp-Frame test cases

John Ralls jralls at code.gnucash.org
Sat Dec 20 13:49:21 EST 2014


Updated	 via  https://github.com/Gnucash/gnucash/commit/7d5f0a66 (commit)
	from  https://github.com/Gnucash/gnucash/commit/2f0a193b (commit)



commit 7d5f0a66a0aaa91f61038e2645a6ec48ba5418e7
Author: lmat <dartme18 at gmail.com>
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
    like
    
    template <typename T> void
    for_each_slot (T & t, void * data) const
    {
        std::for_each(......
        [&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/Makefile.am        |  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