#include "llvm/Support/TarWriter.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Testing/Support/SupportHelpers.h"
#include "gtest/gtest.h"
#include <vector>
usingnamespacellvm;
TempFile;
namespace {
struct UstarHeader { … };
class TarWriterTest : public ::testing::Test { … };
static std::vector<uint8_t> createTar(StringRef Base, StringRef Filename) { … }
static UstarHeader createUstar(StringRef Base, StringRef Filename) { … }
TEST_F(TarWriterTest, Basics) { … }
TEST_F(TarWriterTest, LongFilename) { … }
TEST_F(TarWriterTest, Pax) { … }
TEST_F(TarWriterTest, SingleFile) { … }
TEST_F(TarWriterTest, NoDuplicate) { … }
TEST_F(TarWriterTest, Duplicate) { … }
}