Lumiera  0.pre.03
»edit your freedom«
testdummy.hpp File Reference

Go to the source code of this file.

Description

unittest helper code: test dummy objects to track instances.

These can be used to verify proper allocation handling, either by watching the checksum of Dummy, or by matching on the EventLog embedded into Tracker.

Definition in file testdummy.hpp.

#include "lib/nocopy.hpp"
#include "lib/test/event-log.hpp"
#include "lib/format-string.hpp"
#include "lib/util.hpp"
#include <algorithm>
#include <limits>

Classes

class  Dummy
 A Dummy object for tests. More...
 
struct  Tracker
 A tracking Dummy object for tests. More...
 

Namespaces

 lib
 Implementation namespace for support and library code.