llvm/llvm/unittests/Support/JSONTest.cpp

//===-- JSONTest.cpp - JSON unit tests --------------------------*- C++ -*-===//
//
// 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/JSON.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Testing/Support/Error.h"

#include "gmock/gmock.h"
#include "gtest/gtest.h"

namespace llvm {
namespace json {

namespace {

std::string s(const Value &E) {}
std::string sp(const Value &E) {}

TEST(JSONTest, Types) {}

TEST(JSONTest, Constructors) {}

TEST(JSONTest, StringOwnership) {}

TEST(JSONTest, CanonicalOutput) {}

TEST(JSONTest, Escaping) {}

TEST(JSONTest, PrettyPrinting) {}

TEST(JSONTest, Array) {}

TEST(JSONTest, Object) {}

TEST(JSONTest, Parse) {}

TEST(JSONTest, ParseErrors) {}

// Direct tests of isUTF8 and fixUTF8. Internal uses are also tested elsewhere.
TEST(JSONTest, UTF8) {}

TEST(JSONTest, Inspection) {}

// Verify special integer handling - we try to preserve exact int64 values.
TEST(JSONTest, Integers) {}

// Verify uint64_t type.
TEST(JSONTest, U64Integers) {}

template <typename T> void checkCppIntegers() {}

// Test that underlying C++ integer types behave as expected.
TEST(JSONTest, CppIntegers) {}

// Sample struct with typical JSON-mapping rules.
struct CustomStruct {};
inline bool operator==(const CustomStruct &L, const CustomStruct &R) {}
inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
                                     const CustomStruct &S) {}
bool fromJSON(const Value &E, CustomStruct &R, Path P) {}

static std::string errorContext(const Value &V, const Path::Root &R) {}

TEST(JSONTest, Deserialize) {}

TEST(JSONTest, ParseDeserialize) {}

TEST(JSONTest, Stream) {}

TEST(JSONTest, Path) {}

} // namespace
} // namespace json
} // namespace llvm