diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cache.cc | 8 | ||||
-rw-r--r-- | tests/dram.cc | 8 | ||||
-rw-r--r-- | tests/logger.cc | 6 |
3 files changed, 19 insertions, 3 deletions
diff --git a/tests/cache.cc b/tests/cache.cc new file mode 100644 index 0000000..6580563 --- /dev/null +++ b/tests/cache.cc @@ -0,0 +1,8 @@ +#include "cache.h" +#include <catch2/catch_test_macros.hpp> + +TEST_CASE("Constructor initialize test 1", "[cache]") +{ + Cache *c = new Cache(1, nullptr, 4); + delete c; +} diff --git a/tests/dram.cc b/tests/dram.cc new file mode 100644 index 0000000..21182f8 --- /dev/null +++ b/tests/dram.cc @@ -0,0 +1,8 @@ +#include "dram.h" +#include <catch2/catch_test_macros.hpp> + +TEST_CASE("Constructor initialize test 1", "[dram]") +{ + Dram *d = new Dram(1, 4); + delete d; +} diff --git a/tests/logger.cc b/tests/logger.cc index 18e4fab..711dd0e 100644 --- a/tests/logger.cc +++ b/tests/logger.cc @@ -4,7 +4,7 @@ #include <regex> #include <sstream> -TEST_CASE("Logger logs higher log level") +TEST_CASE("Logger logs higher log level", "[logger]") { std::streambuf *coutBuffer = std::cout.rdbuf(); std::ostringstream oss; @@ -25,7 +25,7 @@ TEST_CASE("Logger logs higher log level") REQUIRE(std::regex_match(actual, expected)); } -TEST_CASE("Logger logs equal log level") +TEST_CASE("Logger logs equal log level", "[logger]") { std::streambuf *coutBuffer = std::cout.rdbuf(); std::ostringstream oss; @@ -45,7 +45,7 @@ TEST_CASE("Logger logs equal log level") REQUIRE(std::regex_match(actual, expected)); } -TEST_CASE("Logger ignores lower log level") +TEST_CASE("Logger ignores lower log level", "[logger]") { std::streambuf *coutBuffer = std::cout.rdbuf(); std::ostringstream oss; |