DotNameLib
Loading...
Searching...
No Matches
FileReaderTest.cpp File Reference
#include <Utils/Filesystem/FileReader.hpp>
#include <filesystem>
#include <fstream>
#include <gtest/gtest.h>
#include <string>
Include dependency graph for FileReaderTest.cpp:

Classes

class  FileReaderTest

Functions

 TEST_F (FileReaderTest, ExistsReturnsTrueForExistingFile)
 TEST_F (FileReaderTest, ExistsReturnsFalseForNonexistentFile)
 TEST_F (FileReaderTest, ExistsReturnsFalseForDirectory)
 TEST_F (FileReaderTest, ExistsHandlesUnicodePaths)
 TEST_F (FileReaderTest, GetSizeReturnsCorrectSize)
 TEST_F (FileReaderTest, GetSizeHandlesEmptyFile)
 TEST_F (FileReaderTest, GetSizeFailsForNonexistentFile)
 TEST_F (FileReaderTest, GetSizeFailsForDirectory)
 TEST_F (FileReaderTest, ReadReturnsFileContent)
 TEST_F (FileReaderTest, ReadHandlesEmptyFile)
 TEST_F (FileReaderTest, ReadHandlesUnicodeContent)
 TEST_F (FileReaderTest, ReadFailsForNonexistentFile)
 TEST_F (FileReaderTest, ReadFailsForDirectory)
 TEST_F (FileReaderTest, ReadFailsForEmptyPath)
 TEST_F (FileReaderTest, ReadBytesReturnsCorrectData)
 TEST_F (FileReaderTest, ReadBytesHandlesEmptyFile)
 TEST_F (FileReaderTest, ReadBytesWorksWithTextFile)
 TEST_F (FileReaderTest, ReadBytesFailsForNonexistentFile)
 TEST_F (FileReaderTest, ReadLinesReturnsAllLines)
 TEST_F (FileReaderTest, ReadLinesHandlesSingleLine)
 TEST_F (FileReaderTest, ReadLinesHandlesEmptyFile)
 TEST_F (FileReaderTest, ReadLinesHandlesTrailingNewline)
 TEST_F (FileReaderTest, ReadLinesFailsForNonexistentFile)
 TEST_F (FileReaderTest, ErrorContainsFilePath)
 TEST_F (FileReaderTest, ErrorContainsMessage)
 TEST_F (FileReaderTest, ErrorToStringProducesOutput)
 TEST_F (FileReaderTest, ResultBoolConversionWorks)
 TEST_F (FileReaderTest, ResultDereferenceOperatorWorks)
 TEST_F (FileReaderTest, ResultValueOrWorks)

Function Documentation

◆ TEST_F() [1/29]

TEST_F ( FileReaderTest ,
ErrorContainsFilePath  )
Here is the call graph for this function:

◆ TEST_F() [2/29]

TEST_F ( FileReaderTest ,
ErrorContainsMessage  )
Here is the call graph for this function:

◆ TEST_F() [3/29]

TEST_F ( FileReaderTest ,
ErrorToStringProducesOutput  )
Here is the call graph for this function:

◆ TEST_F() [4/29]

TEST_F ( FileReaderTest ,
ExistsHandlesUnicodePaths  )
Here is the call graph for this function:

◆ TEST_F() [5/29]

TEST_F ( FileReaderTest ,
ExistsReturnsFalseForDirectory  )
Here is the call graph for this function:

◆ TEST_F() [6/29]

TEST_F ( FileReaderTest ,
ExistsReturnsFalseForNonexistentFile  )
Here is the call graph for this function:

◆ TEST_F() [7/29]

TEST_F ( FileReaderTest ,
ExistsReturnsTrueForExistingFile  )
Here is the call graph for this function:

◆ TEST_F() [8/29]

TEST_F ( FileReaderTest ,
GetSizeFailsForDirectory  )
Here is the call graph for this function:

◆ TEST_F() [9/29]

TEST_F ( FileReaderTest ,
GetSizeFailsForNonexistentFile  )
Here is the call graph for this function:

◆ TEST_F() [10/29]

TEST_F ( FileReaderTest ,
GetSizeHandlesEmptyFile  )
Here is the call graph for this function:

◆ TEST_F() [11/29]

TEST_F ( FileReaderTest ,
GetSizeReturnsCorrectSize  )
Here is the call graph for this function:

◆ TEST_F() [12/29]

TEST_F ( FileReaderTest ,
ReadBytesFailsForNonexistentFile  )
Here is the call graph for this function:

◆ TEST_F() [13/29]

TEST_F ( FileReaderTest ,
ReadBytesHandlesEmptyFile  )
Here is the call graph for this function:

◆ TEST_F() [14/29]

TEST_F ( FileReaderTest ,
ReadBytesReturnsCorrectData  )
Here is the call graph for this function:

◆ TEST_F() [15/29]

TEST_F ( FileReaderTest ,
ReadBytesWorksWithTextFile  )
Here is the call graph for this function:

◆ TEST_F() [16/29]

TEST_F ( FileReaderTest ,
ReadFailsForDirectory  )
Here is the call graph for this function:

◆ TEST_F() [17/29]

TEST_F ( FileReaderTest ,
ReadFailsForEmptyPath  )
Here is the call graph for this function:

◆ TEST_F() [18/29]

TEST_F ( FileReaderTest ,
ReadFailsForNonexistentFile  )
Here is the call graph for this function:

◆ TEST_F() [19/29]

TEST_F ( FileReaderTest ,
ReadHandlesEmptyFile  )
Here is the call graph for this function:

◆ TEST_F() [20/29]

TEST_F ( FileReaderTest ,
ReadHandlesUnicodeContent  )
Here is the call graph for this function:

◆ TEST_F() [21/29]

TEST_F ( FileReaderTest ,
ReadLinesFailsForNonexistentFile  )
Here is the call graph for this function:

◆ TEST_F() [22/29]

TEST_F ( FileReaderTest ,
ReadLinesHandlesEmptyFile  )
Here is the call graph for this function:

◆ TEST_F() [23/29]

TEST_F ( FileReaderTest ,
ReadLinesHandlesSingleLine  )
Here is the call graph for this function:

◆ TEST_F() [24/29]

TEST_F ( FileReaderTest ,
ReadLinesHandlesTrailingNewline  )
Here is the call graph for this function:

◆ TEST_F() [25/29]

TEST_F ( FileReaderTest ,
ReadLinesReturnsAllLines  )
Here is the call graph for this function:

◆ TEST_F() [26/29]

TEST_F ( FileReaderTest ,
ReadReturnsFileContent  )
Here is the call graph for this function:

◆ TEST_F() [27/29]

TEST_F ( FileReaderTest ,
ResultBoolConversionWorks  )
Here is the call graph for this function:

◆ TEST_F() [28/29]

TEST_F ( FileReaderTest ,
ResultDereferenceOperatorWorks  )
Here is the call graph for this function:

◆ TEST_F() [29/29]

TEST_F ( FileReaderTest ,
ResultValueOrWorks  )
Here is the call graph for this function: