From 2595f4ed6bcf5abd5b155e60fa4985cff41b4b94 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 23 Sep 2018 00:37:27 +0200 Subject: [PATCH] WIP: more test coverage. --- src/plugins/tools/netx/testdata/hlp4.oas | Bin 0 -> 667 bytes .../netx/unit_tests/dbHierProcessorTests.cc | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/plugins/tools/netx/testdata/hlp4.oas diff --git a/src/plugins/tools/netx/testdata/hlp4.oas b/src/plugins/tools/netx/testdata/hlp4.oas new file mode 100644 index 0000000000000000000000000000000000000000..0e43780b40094afce9ccba2545d64f650b3e6f22 GIT binary patch literal 667 zcmY!lcJ=kt^>+;R4CduxWH!_@V0gjKfDB|rrGn#q9V6m{J>C6WUE)3cLR{TlgW|(I zT|zuKSY&u*Akv|J*c8Z!as|hS_y@#0yZZR>FaudEAcBE~&Dq1#$HkBl$}nQ#Wf4hd zVrY=;5#?q`kzK$jQu2oHjrxr)i$SEEiQ$Ua1&s~OK+8)$i0%+?I0|wG$U!gu0o}#`as$f&o{ypvWDck{ s7~Pl!G9M`LlM5u!p?*UaZ1(}4A3y<74MwH|JV3w9Vq|I<$$)_Y08^9o>;M1& literal 0 HcmV?d00001 diff --git a/src/plugins/tools/netx/unit_tests/dbHierProcessorTests.cc b/src/plugins/tools/netx/unit_tests/dbHierProcessorTests.cc index 0ba47241e..f95c059d3 100644 --- a/src/plugins/tools/netx/unit_tests/dbHierProcessorTests.cc +++ b/src/plugins/tools/netx/unit_tests/dbHierProcessorTests.cc @@ -103,30 +103,48 @@ void run_test_bool (tl::TestBase *_this, const char *file, TestMode mode, int ou TEST(BasicAnd1) { + // Simple flat AND run_test_bool (_this, "hlp1.oas", TMAnd, 100); } TEST(BasicNot1) { + // Simple flat NOT run_test_bool (_this, "hlp1.oas", TMNot, 101); } TEST(BasicAnd2) { + // Up/down and down/up interactions, AND run_test_bool (_this, "hlp2.oas", TMAnd, 100); } TEST(BasicNot2) { + // Up/down and down/up interactions, NOT run_test_bool (_this, "hlp2.oas", TMNot, 101); } TEST(BasicAnd3) { + // Variant building, AND run_test_bool (_this, "hlp3.oas", TMAnd, 100); } TEST(BasicNot3) { + // Variant building, NOT run_test_bool (_this, "hlp3.oas", TMNot, 101); } + +TEST(BasicAnd4) +{ + // Sibling interactions, variant building, AND + run_test_bool (_this, "hlp4.oas", TMAnd, 100); +} + +TEST(BasicNot4) +{ + // Sibling interactions, variant building, NOT + run_test_bool (_this, "hlp4.oas", TMNot, 101); +}