diff options
-rw-r--r-- | slicer/test/interfaces.ice | 8 | ||||
-rw-r--r-- | slicer/test/preprocessor.cpp | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/slicer/test/interfaces.ice b/slicer/test/interfaces.ice new file mode 100644 index 0000000..499ff67 --- /dev/null +++ b/slicer/test/interfaces.ice @@ -0,0 +1,8 @@ +// This only contains interfaces, which don't get counted + +module Interfaces { + interface DontCountMe { + + }; +}; + diff --git a/slicer/test/preprocessor.cpp b/slicer/test/preprocessor.cpp index 430efd9..49c5c88 100644 --- a/slicer/test/preprocessor.cpp +++ b/slicer/test/preprocessor.cpp @@ -40,6 +40,12 @@ BOOST_AUTO_TEST_CASE( slicer_test_counts_nullfilestar ) BOOST_REQUIRE_EQUAL(COMPONENTS_IN_TEST_ICE, count); } +BOOST_AUTO_TEST_CASE( slicer_test_counts_interfacesOnly ) +{ + auto count = Slicer::Slicer::Apply(root / "interfaces.ice", NULL); + BOOST_REQUIRE_EQUAL(0, count); +} + BOOST_AUTO_TEST_CASE( slicer_test_ice ) { const fs::path cpp = fs::change_extension(tmp / base, ".cpp"); |