|
@@ -50,23 +50,23 @@ TEST_CASE("pdevs/only_one", "run")
|
|
|
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a").
|
|
|
- filter_type(artis::common::START).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::START).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a").
|
|
|
- filter_type(artis::common::DELTA_EXT).size() == 0);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_EXT).size() == 0);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a").
|
|
|
- filter_type(artis::common::DELTA_CONF).size() == 0);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_CONF).size() == 0);
|
|
|
for (unsigned int t = 0; t <= 10; ++t) {
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_INT).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_INT).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a").filter_time(t).
|
|
|
- filter_type(artis::common::TA).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::TA).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a").filter_time(t).
|
|
|
- filter_type(artis::common::LAMBDA).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::LAMBDA).size() == 2);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -84,78 +84,78 @@ TEST_CASE("pdevs/flat", "run")
|
|
|
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a1").
|
|
|
- filter_type(artis::common::START).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::START).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b1").
|
|
|
- filter_type(artis::common::START).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::START).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a2").
|
|
|
- filter_type(artis::common::START).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::START).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b2").
|
|
|
- filter_type(artis::common::START).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::START).size() == 1);
|
|
|
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a1").
|
|
|
- filter_type(artis::common::DELTA_EXT).size() == 0);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_EXT).size() == 0);
|
|
|
for (unsigned int t = 0; t <= 10; ++t) {
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a1").filter_time(t).
|
|
|
- filter_type(artis::common::LAMBDA).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::LAMBDA).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a1").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_INT).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_INT).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a1").filter_time(t).
|
|
|
- filter_type(artis::common::TA).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::TA).size() == 2);
|
|
|
}
|
|
|
|
|
|
for (unsigned int t = 0; t <= 10; ++t) {
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b1").filter_time(t).
|
|
|
- filter_type(artis::common::LAMBDA).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::LAMBDA).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b1").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_INT).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_INT).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b1").filter_time(t).
|
|
|
- filter_type(artis::common::TA).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::TA).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b1").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_EXT).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_EXT).size() == 1);
|
|
|
}
|
|
|
|
|
|
for (unsigned int t = 0; t <= 10; ++t) {
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a2").filter_time(t).
|
|
|
- filter_type(artis::common::LAMBDA).size() == 3);
|
|
|
+ filter_type(artis::common::TraceType::LAMBDA).size() == 3);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a2").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_INT).size() == 3);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_INT).size() == 3);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a2").filter_time(t).
|
|
|
- filter_type(artis::common::TA).size() == 4);
|
|
|
+ filter_type(artis::common::TraceType::TA).size() == 4);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a2").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_EXT).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_EXT).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a2").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_CONF).size() == 0);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_CONF).size() == 0);
|
|
|
}
|
|
|
|
|
|
for (unsigned int t = 0; t <= 10; ++t) {
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b2").filter_time(t).
|
|
|
- filter_type(artis::common::LAMBDA).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::LAMBDA).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b2").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_INT).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_INT).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b2").filter_time(t).
|
|
|
- filter_type(artis::common::TA).size() == 4);
|
|
|
+ filter_type(artis::common::TraceType::TA).size() == 4);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b2").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_EXT).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_EXT).size() == 2);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -173,77 +173,77 @@ TEST_CASE("pdevs/hierachical", "run")
|
|
|
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a1").
|
|
|
- filter_type(artis::common::START).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::START).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b1").
|
|
|
- filter_type(artis::common::START).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::START).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a2").
|
|
|
- filter_type(artis::common::START).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::START).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b2").
|
|
|
- filter_type(artis::common::START).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::START).size() == 1);
|
|
|
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a1").
|
|
|
- filter_type(artis::common::DELTA_EXT).size() == 0);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_EXT).size() == 0);
|
|
|
for (unsigned int t = 0; t <= 10; ++t) {
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a1").filter_time(t).
|
|
|
- filter_type(artis::common::LAMBDA).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::LAMBDA).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a1").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_INT).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_INT).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a1").filter_time(t).
|
|
|
- filter_type(artis::common::TA).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::TA).size() == 2);
|
|
|
}
|
|
|
|
|
|
for (unsigned int t = 0; t <= 10; ++t) {
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b1").filter_time(t).
|
|
|
- filter_type(artis::common::LAMBDA).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::LAMBDA).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b1").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_INT).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_INT).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b1").filter_time(t).
|
|
|
- filter_type(artis::common::TA).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::TA).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b1").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_EXT).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_EXT).size() == 1);
|
|
|
}
|
|
|
|
|
|
for (unsigned int t = 0; t <= 10; ++t) {
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a2").filter_time(t).
|
|
|
- filter_type(artis::common::LAMBDA).size() == 3);
|
|
|
+ filter_type(artis::common::TraceType::LAMBDA).size() == 3);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a2").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_INT).size() == 3);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_INT).size() == 3);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a2").filter_time(t).
|
|
|
- filter_type(artis::common::TA).size() == 4);
|
|
|
+ filter_type(artis::common::TraceType::TA).size() == 4);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a2").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_EXT).size() == 1);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_EXT).size() == 1);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("a2").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_CONF).size() == 0);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_CONF).size() == 0);
|
|
|
}
|
|
|
|
|
|
for (unsigned int t = 0; t <= 10; ++t) {
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b2").filter_time(t).
|
|
|
- filter_type(artis::common::LAMBDA).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::LAMBDA).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b2").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_INT).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_INT).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b2").filter_time(t).
|
|
|
- filter_type(artis::common::TA).size() == 4);
|
|
|
+ filter_type(artis::common::TraceType::TA).size() == 4);
|
|
|
REQUIRE(artis::common::Trace<DoubleTime>::trace().elements().
|
|
|
filter_model_name("b2").filter_time(t).
|
|
|
- filter_type(artis::common::DELTA_EXT).size() == 2);
|
|
|
+ filter_type(artis::common::TraceType::DELTA_EXT).size() == 2);
|
|
|
}
|
|
|
}
|