14 using namespace Nymph;
23 KTINFO(testlog,
"Initial cut state: " << cutStatus.IsCut());
25 KTINFO(testlog,
"Applying awesome cut");
27 cut.
Apply(data, testData);
29 KTINFO(testlog,
"Cuts present: " << cutStatus.CutResultsPresent())
30 KTINFO(testlog,
"Has cut result \"awesome-cut\"? " << cutStatus.HasCutResult(
"awesome-cut"));
32 KTINFO(testlog,
"Cut state of \"awesome-cut\" is: " << cutStatus.GetCutState(
"awesome-cut"));
34 KTINFO(testlog,
"Is cut (all results)? " << cutStatus.IsCut());
35 KTINFO(testlog,
"Is cut (with mask \"0\")? " << cutStatus.IsCut(
"0"));
37 KTINFO(testlog,
"Applying not-awesome cut");
39 naCut.
Apply(data, testData);
41 KTINFO(testlog,
"Cuts present: " << cutStatus.CutResultsPresent())
42 KTINFO(testlog,
"Has cut result \"awesome-cut\"? " << cutStatus.HasCutResult(
"awesome-cut"));
44 KTINFO(testlog,
"Cut state of \"awesome-cut\" is: " << cutStatus.GetCutState(
"awesome-cut"));
46 KTINFO(testlog,
"Has cut result \"not-awesome-cut\"? " << cutStatus.HasCutResult(
"not-awesome-cut"));
48 KTINFO(testlog,
"Cut state of \"not-awesome-cut\" is: " << cutStatus.GetCutState(
"not-awesome-cut"));
50 KTINFO(testlog,
"Is cut (all results)? " << cutStatus.IsCut());
51 KTINFO(testlog,
"Is cut with mask \"00\"? " << cutStatus.IsCut(
"00"));
52 KTINFO(testlog,
"Is cut with mask \"01\"? " << cutStatus.IsCut(
"01"));
53 KTINFO(testlog,
"Is cut with mask \"10\"? " << cutStatus.IsCut(
"10"));
54 KTINFO(testlog,
"Is cut with mask \"11\"? " << cutStatus.IsCut(
"11"));
55 KTINFO(testlog,
"Is cut with mask 0? " << cutStatus.IsCut(0));
56 KTINFO(testlog,
"Is cut with mask 1? " << cutStatus.IsCut(1));
57 KTINFO(testlog,
"Is cut with mask 2? " << cutStatus.IsCut(2));
58 KTINFO(testlog,
"Is cut with mask 3? " << cutStatus.IsCut(3));
KTLOGGER(testlog, "TestCut")
Provides easy access to cut information.
XStructType & Of(void)
Returns a reference to the object of type XStructType; creates that object if it doesn't exist...
bool Apply(KTData &data, KTTestData &testData)
Contains the logger class and macros, based on Kasper's KLogger class.
bool Apply(KTData &data, KTTestData &testData)