#include "absl/numeric/int128.h"
#include <sstream>
#include <string>
#include "gtest/gtest.h"
#include "absl/strings/str_cat.h"
namespace {
struct Uint128TestCase { … };
constexpr char kFill = …;
std::string StreamFormatToString(std::ios_base::fmtflags flags,
std::streamsize width) { … }
constexpr std::ios::fmtflags kDec = …;
constexpr std::ios::fmtflags kOct = …;
constexpr std::ios::fmtflags kHex = …;
constexpr std::ios::fmtflags kLeft = …;
constexpr std::ios::fmtflags kInt = …;
constexpr std::ios::fmtflags kRight = …;
constexpr std::ios::fmtflags kUpper = …;
constexpr std::ios::fmtflags kBase = …;
constexpr std::ios::fmtflags kPos = …;
void CheckUint128Case(const Uint128TestCase& test_case) { … }
TEST(Uint128, OStreamValueTest) { … }
std::vector<Uint128TestCase> GetUint128FormatCases();
TEST(Uint128, OStreamFormatTest) { … }
struct Int128TestCase { … };
void CheckInt128Case(const Int128TestCase& test_case) { … }
TEST(Int128, OStreamValueTest) { … }
std::vector<Int128TestCase> GetInt128FormatCases();
TEST(Int128, OStreamFormatTest) { … }
std::vector<Int128TestCase> GetInt128FormatCases() { … }
std::vector<Uint128TestCase> GetUint128FormatCases() { … }
}