diff options
author | bd <bdunahu@operationnull.com> | 2025-03-10 14:53:59 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-10 14:53:59 -0400 |
commit | cdcaec3c1e62b47fcd270df651cd0e343e46f0e7 (patch) | |
tree | fc77cc22024b719f14e03e29e2bbd94b3eb645ca /tests | |
parent | 1f8b8babcfb383f1fb0281663561161061684206 (diff) |
Update cli method signatures, add some getters to cache and storage
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cache.cc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/cache.cc b/tests/cache.cc index 8d1e806..fc467c7 100644 --- a/tests/cache.cc +++ b/tests/cache.cc @@ -38,7 +38,6 @@ TEST_CASE("no delay stores instantly", "[cache]") actual = c->view(0, 1)[0]; REQUIRE(expected == actual); - delete d; delete c; } @@ -77,7 +76,6 @@ TEST_CASE("cache takes \"forever\"", "[cache]") actual = c->view(0, 1)[0]; REQUIRE(expected == actual); - delete d; delete c; } @@ -116,7 +114,6 @@ TEST_CASE("dram takes \"forever\"", "[cache]") actual = c->view(0, 1)[0]; REQUIRE(expected == actual); - delete d; delete c; } @@ -166,11 +163,11 @@ TEST_CASE("dram and cache take \"forever\"", "[cache]") actual = c->view(0, 1)[0]; REQUIRE(expected == actual); - delete d; delete c; } -TEST_CASE("dram takes \"forever\", two concurrent requests same index", "[cache]") +TEST_CASE( + "dram takes \"forever\", two concurrent requests same index", "[cache]") { int delay = 0; Dram *d = new Dram(MEM_SIZE, delay + 2); @@ -223,11 +220,12 @@ TEST_CASE("dram takes \"forever\", two concurrent requests same index", "[cache] actual = c->view(0, 1)[0]; REQUIRE(expected == actual); - delete d; delete c; } -TEST_CASE("dram takes \"forever\", two concurrent requests different index", "[cache]") +TEST_CASE( + "dram takes \"forever\", two concurrent requests different index", + "[cache]") { int delay = 0; Dram *d = new Dram(MEM_SIZE, delay + 2); @@ -289,11 +287,11 @@ TEST_CASE("dram takes \"forever\", two concurrent requests different index", "[c actual = c->view(0, 1)[0]; REQUIRE(expected == actual); - delete d; delete c; } -TEST_CASE("dram takes \"forever\", two concurrent requests different tag", "[cache]") +TEST_CASE( + "dram takes \"forever\", two concurrent requests different tag", "[cache]") { // TODO } |