From 29d83fc5e80ec2b61edf20e99db39ed29a639f21 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Mon, 23 Dec 2024 09:31:36 -0600 Subject: [PATCH] Complete ring buffer and direct download support #26 --- .../src/ring_buffer_open_file_test.cpp | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/repertory/repertory_test/src/ring_buffer_open_file_test.cpp b/repertory/repertory_test/src/ring_buffer_open_file_test.cpp index f47fc39f..67024c81 100644 --- a/repertory/repertory_test/src/ring_buffer_open_file_test.cpp +++ b/repertory/repertory_test/src/ring_buffer_open_file_test.cpp @@ -74,8 +74,6 @@ TEST_F(ring_buffer_open_file_test, can_forward_to_last_chunk) { EXPECT_TRUE(file.get_read_state(chunk)); } } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } TEST_F(ring_buffer_open_file_test, @@ -103,8 +101,6 @@ TEST_F(ring_buffer_open_file_test, EXPECT_FALSE(file.get_read_state(chunk)); } } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } TEST_F(ring_buffer_open_file_test, can_forward_after_last_chunk) { @@ -132,8 +128,6 @@ TEST_F(ring_buffer_open_file_test, can_forward_after_last_chunk) { EXPECT_TRUE(file.get_read_state(chunk)); } } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } TEST_F(ring_buffer_open_file_test, can_forward_and_rollover_after_last_chunk) { @@ -157,8 +151,6 @@ TEST_F(ring_buffer_open_file_test, can_forward_and_rollover_after_last_chunk) { EXPECT_EQ(std::size_t(21U), file.get_first_chunk()); EXPECT_EQ(std::size_t(28U), file.get_last_chunk()); } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } TEST_F(ring_buffer_open_file_test, can_reverse_to_first_chunk) { @@ -185,8 +177,6 @@ TEST_F(ring_buffer_open_file_test, can_reverse_to_first_chunk) { EXPECT_TRUE(file.get_read_state(chunk)); } } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } TEST_F(ring_buffer_open_file_test, @@ -214,8 +204,6 @@ TEST_F(ring_buffer_open_file_test, EXPECT_TRUE(file.get_read_state(chunk)); } } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } TEST_F(ring_buffer_open_file_test, can_reverse_before_first_chunk) { @@ -243,8 +231,6 @@ TEST_F(ring_buffer_open_file_test, can_reverse_before_first_chunk) { EXPECT_TRUE(file.get_read_state(chunk)); } } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } TEST_F(ring_buffer_open_file_test, @@ -277,8 +263,6 @@ TEST_F(ring_buffer_open_file_test, EXPECT_TRUE(file.get_read_state(chunk)); } } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } TEST_F(ring_buffer_open_file_test, can_reverse_full_ring) { @@ -306,8 +290,6 @@ TEST_F(ring_buffer_open_file_test, can_reverse_full_ring) { EXPECT_FALSE(file.get_read_state(chunk)); } } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } TEST_F(ring_buffer_open_file_test, read_full_file) { @@ -371,8 +353,6 @@ TEST_F(ring_buffer_open_file_test, read_full_file) { EXPECT_STREQ(hash1.value().c_str(), hash2.value().c_str()); } } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } TEST_F(ring_buffer_open_file_test, read_full_file_in_reverse) { @@ -436,8 +416,6 @@ TEST_F(ring_buffer_open_file_test, read_full_file_in_reverse) { EXPECT_STREQ(hash1.value().c_str(), hash2.value().c_str()); } } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } TEST_F(ring_buffer_open_file_test, read_full_file_in_partial_chunks) { @@ -502,8 +480,6 @@ TEST_F(ring_buffer_open_file_test, read_full_file_in_partial_chunks) { EXPECT_STREQ(hash1.value().c_str(), hash2.value().c_str()); } } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } TEST_F(ring_buffer_open_file_test, @@ -574,7 +550,5 @@ TEST_F(ring_buffer_open_file_test, EXPECT_STREQ(hash1.value().c_str(), hash2.value().c_str()); } } - - EXPECT_TRUE(utils::file::directory(ring_buffer_dir).remove_recursively()); } } // namespace repertory