diff options
author | bd <bdunaisky@umass.edu> | 2025-03-06 21:28:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-06 21:28:20 +0000 |
commit | 04909d2bf353494a84bdf8d3d0e2f48ceeaa2ea0 (patch) | |
tree | af137790ab40290d1cc4e83f3261370c591512bc /tests | |
parent | b88f24b680be34b3669f33214758c76439d7b777 (diff) | |
parent | e296a3a6ab782cb80b7091324b41bb78db6d3906 (diff) |
Merge pull request #13 from bdunahu/bdunahu
constructors + method declarations for cache, dram, reponse, storage
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; |