DDraceNetwork Docs
linereader.cpp File Reference
#include "test.h"
#include <gtest/gtest.h>
#include <base/system.h>
#include <engine/shared/linereader.h>
Include dependency graph for linereader.cpp:

Functions

void TestFileLineReaderRaw (const char *pWritten, unsigned WrittenLength, std::initializer_list< const char * > pReads, bool ExpectSuccess, bool WriteBom)
 
void TestFileLineReaderRaw (const char *pWritten, unsigned WrittenLength, std::initializer_list< const char * > pReads, bool ExpectSuccess)
 
void TestFileLineReader (const char *pWritten, std::initializer_list< const char * > pReads)
 
 TEST (LineReader, NormalNewline)
 
 TEST (LineReader, CRLFNewline)
 
 TEST (LineReader, MixedNewline)
 
 TEST (LineReader, EmptyLines)
 
 TEST (LineReader, Invalid)
 
 TEST (LineReader, NullBytes)
 

Function Documentation

◆ TEST() [1/6]

TEST ( LineReader  ,
CRLFNewline   
)

◆ TEST() [2/6]

TEST ( LineReader  ,
EmptyLines   
)

◆ TEST() [3/6]

TEST ( LineReader  ,
Invalid   
)

◆ TEST() [4/6]

TEST ( LineReader  ,
MixedNewline   
)

◆ TEST() [5/6]

TEST ( LineReader  ,
NormalNewline   
)

◆ TEST() [6/6]

TEST ( LineReader  ,
NullBytes   
)

◆ TestFileLineReader()

void TestFileLineReader ( const char *  pWritten,
std::initializer_list< const char * >  pReads 
)

◆ TestFileLineReaderRaw() [1/2]

void TestFileLineReaderRaw ( const char *  pWritten,
unsigned  WrittenLength,
std::initializer_list< const char * >  pReads,
bool  ExpectSuccess 
)

◆ TestFileLineReaderRaw() [2/2]

void TestFileLineReaderRaw ( const char *  pWritten,
unsigned  WrittenLength,
std::initializer_list< const char * >  pReads,
bool  ExpectSuccess,
bool  WriteBom 
)