Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
diff-complex-application-test.cpp File Reference

unit test DiffComplexApplication_test. More...

Go to the source code of this file.

Description

unit test DiffComplexApplication_test.

Demonstrates the concept of tree mutation by diff messages. This is an elaborate demonstration setup to show how a binding is setup in practice and to highlight some of the more intricate implementation corner cases, allowing for much flexibility when binding to otherwise opaque target data structures.

Definition in file diff-complex-application-test.cpp.

#include "lib/test/run.hpp"
#include "lib/format-util.hpp"
#include "lib/diff/tree-diff-application.hpp"
#include "lib/diff/test-mutation-target.hpp"
#include "lib/iter-adapter-stl.hpp"
#include "lib/time/timevalue.hpp"
#include "lib/format-string.hpp"
#include "lib/format-cout.hpp"
#include "lib/util.hpp"
#include <string>
#include <vector>
#include <memory>

Namespaces

namespace  lib
 Implementation namespace for support and library code.
 
namespace  lib::diff
 
namespace  lib::diff::test
 
namespace  lib::diff::test::anonymous_namespace{diff-complex-application-test.cpp}
 

Classes

class  Opaque
 opaque private data structure to apply the diff. More...
 
class  DiffComplexApplication_test
 

Functions

 LAUNCHER (DiffComplexApplication_test, "unit common")
 Register this test class...
 

Variables

const GenNode ATTRIB1 ("α", 1)
 
const GenNode ATTRIB2 ("β", int64_t(2))
 
const GenNode ATTRIB3 ("γ", 3.45)
 
const GenNode TYPE_X ("type", "ξ")
 
const GenNode TYPE_Z ("type", "ζ")
 
const GenNode CHILD_A ("a")
 
const GenNode CHILD_B ('b')
 
const GenNode CHILD_T (Time(12, 34, 56, 78))
 
const GenNode SUB_NODE = MakeRec().genNode()
 
const GenNode ATTRIB_NODE = MakeRec().genNode("δ")
 
const GenNode GAMMA_PI ("γ", 3.14159265)