clang-format
This commit is contained in:
@@ -10,9 +10,13 @@ class RealFilesystemTest : public ::testing::Test {
|
||||
protected:
|
||||
void SetUp() override {
|
||||
// Create a unique temporary directory for this test run
|
||||
temp_dir = std::filesystem::temp_directory_path() /
|
||||
("finger_test_" + std::to_string(std::chrono::duration_cast<std::chrono::nanoseconds>(
|
||||
std::chrono::high_resolution_clock::now().time_since_epoch()).count()));
|
||||
temp_dir =
|
||||
std::filesystem::temp_directory_path() /
|
||||
("finger_test_" +
|
||||
std::to_string(
|
||||
std::chrono::duration_cast<std::chrono::nanoseconds>(
|
||||
std::chrono::high_resolution_clock::now().time_since_epoch())
|
||||
.count()));
|
||||
|
||||
// Create the temporary directory
|
||||
std::filesystem::create_directories(temp_dir);
|
||||
@@ -162,8 +166,8 @@ TEST_F(RealFilesystemTest, ProcessWithFileContainingOnlyNewlines) {
|
||||
createTestFile("newlineuser", user_content);
|
||||
|
||||
std::string result = process("newlineuser", real_fs, test_base_path);
|
||||
// RealFilesystemWrapper reads line by line, so the last empty line after the final \n
|
||||
// is not read as a separate line, resulting in "\n\n\r\n"
|
||||
// RealFilesystemWrapper reads line by line, so the last empty line after the
|
||||
// final \n is not read as a separate line, resulting in "\n\n\r\n"
|
||||
EXPECT_EQ(result, "\n\n\r\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user