llvm/llvm/unittests/Support/BinaryStreamTest.cpp

//===- llvm/unittest/Support/BinaryStreamTest.cpp -------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "llvm/Support/Allocator.h"
#include "llvm/Support/BinaryByteStream.h"
#include "llvm/Support/BinaryItemStream.h"
#include "llvm/Support/BinaryStreamArray.h"
#include "llvm/Support/BinaryStreamReader.h"
#include "llvm/Support/BinaryStreamRef.h"
#include "llvm/Support/BinaryStreamWriter.h"
#include "llvm/Testing/Support/Error.h"

#include "gtest/gtest.h"


usingnamespacellvm;
usingnamespacellvm::support;

namespace {

class BrokenStream : public WritableBinaryStream {};

constexpr llvm::endianness Endians[] =;
constexpr uint32_t NumEndians =;
constexpr uint32_t NumStreams =;

class BinaryStreamTest : public testing::Test {};

// Tests that a we can read from a BinaryByteStream without a StreamReader.
TEST_F(BinaryStreamTest, BinaryByteStreamBounds) {}

TEST_F(BinaryStreamTest, StreamRefBounds) {}

TEST_F(BinaryStreamTest, StreamRefDynamicSize) {}

TEST_F(BinaryStreamTest, DropOperations) {}

// Test that we can write to a BinaryStream without a StreamWriter.
TEST_F(BinaryStreamTest, MutableBinaryByteStreamBounds) {}

TEST_F(BinaryStreamTest, AppendingStream) {}

// Test that FixedStreamArray works correctly.
TEST_F(BinaryStreamTest, FixedStreamArray) {}

// Ensure FixedStreamArrayIterator::operator-> works.
// Added for coverage of r302257.
TEST_F(BinaryStreamTest, FixedStreamArrayIteratorArrow) {}

// Test that VarStreamArray works correctly.
TEST_F(BinaryStreamTest, VarStreamArray) {}

TEST_F(BinaryStreamTest, StreamReaderBounds) {}

TEST_F(BinaryStreamTest, StreamReaderIntegers) {}

TEST_F(BinaryStreamTest, StreamReaderIntegerArray) {}

TEST_F(BinaryStreamTest, StreamReaderEnum) {}

TEST_F(BinaryStreamTest, StreamReaderULEB128) {}

TEST_F(BinaryStreamTest, StreamReaderSLEB128) {}

TEST_F(BinaryStreamTest, StreamReaderObject) {}

TEST_F(BinaryStreamTest, StreamReaderStrings) {}

TEST_F(BinaryStreamTest, StreamWriterBounds) {}

TEST_F(BinaryStreamTest, StreamWriterIntegerArrays) {}

TEST_F(BinaryStreamTest, StreamWriterStrings) {}

TEST_F(BinaryStreamTest, StreamWriterPadToAlignment) {}

TEST_F(BinaryStreamTest, StreamWriterAppend) {}
}

namespace {
struct BinaryItemStreamObject {};
}

namespace llvm {
template <> struct BinaryItemTraits<BinaryItemStreamObject> {};
}

namespace {

TEST_F(BinaryStreamTest, BinaryItemStream) {}

} // end anonymous namespace