#include "llvm/Object/GOFFObjectFile.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
usingnamespacellvm;
usingnamespacellvm::object;
usingnamespacellvm::GOFF;
namespace {
char GOFFData[GOFF::RecordLength * 3] = …;
void constructValidGOFF(size_t Size) { … }
void constructInvalidGOFF(size_t Size) { … }
}
TEST(GOFFObjectFileTest, ConstructGOFFObjectValidSize) { … }
TEST(GOFFObjectFileTest, ConstructGOFFObjectInvalidSize) { … }
TEST(GOFFObjectFileTest, MissingHDR) { … }
TEST(GOFFObjectFileTest, MissingEND) { … }
TEST(GOFFObjectFileTest, GetSymbolName) { … }
TEST(GOFFObjectFileTest, ConcatenatedGOFFFile) { … }
TEST(GOFFObjectFileTest, ContinuationGetSymbolName) { … }
TEST(GOFFObjectFileTest, ContinuationBitNotSet) { … }
TEST(GOFFObjectFileTest, ContinuationRecordNotTerminated) { … }
TEST(GOFFObjectFileTest, PrevNotContinued) { … }
TEST(GOFFObjectFileTest, ContinuationTypeMismatch) { … }
TEST(GOFFObjectFileTest, TwoSymbols) { … }
TEST(GOFFObjectFileTest, InvalidSymbolType) { … }
TEST(GOFFObjectFileTest, InvalidERSymbolType) { … }
TEST(GOFFObjectFileTest, TXTConstruct) { … }