- Test:
- properties of a container to transport a diff from an abstracted source generator to an abstracted consumer.
- this covers a standard usage scenario within Lumiera, where some producer in the Session core detects changes in session structure and sends a message to make the UI conform to the new structure
- diff messages are hard to debug and test, since they are designed as opaque sequences to be consumed only once. Thus for we provide a snapshot decorator to offer diagnostic facilities
- moreover we provide a simplified builder function to create hard wired diff messages in a concise way
- and finally this test repeats the scenario of DiffTreeApplication_test, but this time the diff sequences are encapsulated as MutationMessage.
- See also
- AbstractTangible_test::mutate() concrete usage scenario for UI-elements
-
DiffTreeApplication_test change a tree-like data structure by diff
-
DiffComplexApplication_test handling arbitrary data structures
-
DiffListApplication_test
-
MutationMessage
-
ui-bus.hpp
Definition at line 109 of file mutation-message-test.cpp.
◆ demonstrate_standardUsage()
void demonstrate_standardUsage |
( |
| ) |
|
|
inlineprivate |
- Test:
- demonstrate the intended usage pattern
- a diff generation context is allocated
- the MutationMessage takes ownership
- and exposes the generated diff sequence
- which is pulled during iteration
Definition at line 131 of file mutation-message-test.cpp.
◆ demonstrate_treeApplication()
void demonstrate_treeApplication |
( |
| ) |
|
|
inlineprivate |
The documentation for this class was generated from the following file: