llvm/mlir/unittests/TableGen/FormatTest.cpp

//===- FormatTest.cpp - TableGen Format Utility Tests ---------------------===//
//
// 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 "mlir/TableGen/Format.h"
#include "gmock/gmock.h"

FmtContext;
tgfmt;
StrEq;

TEST(FormatTest, EmptyFmtStr) {}

/// Allow extra unused positional parameters.
TEST(FormatTest, EmptyFmtStrExtraParams) {}

/// Allow unused placeholder substitution in context.
TEST(FormatTest, EmptyFmtStrPopulatedCtx) {}

TEST(FormatTest, LiteralFmtStr) {}

/// Print single dollar literally.
TEST(FormatTest, AdjacentDollar) {}

/// Print dangling dollar literally.
TEST(FormatTest, DanglingDollar) {}

/// Allow escape dollars with '$$'.
TEST(FormatTest, EscapeDollars) {}

TEST(FormatTest, PositionalFmtStr) {}

/// Output the placeholder if missing substitution.
TEST(FormatTest, PositionalFmtStrMissingParams) {}

/// Allow flexible reference of positional parameters.
TEST(FormatTest, PositionalFmtStrFlexibleRef) {}

TEST(FormatTest, PositionalFmtStrNoWhitespace) {}

TEST(FormatTest, PlaceHolderFmtStrWithSelf) {}

TEST(FormatTest, PlaceHolderFmtStrWithBuilder) {}

TEST(FormatTest, PlaceHolderMissingCtx) {}

TEST(FormatTest, PlaceHolderMissingSubst) {}

/// Test commonly used delimiters in C++.
TEST(FormatTest, PlaceHolderFmtStrDelimiter) {}

/// Test allowed characters in placeholder symbol.
TEST(FormatTest, CustomPlaceHolderFmtStrPlaceHolderChars) {}

TEST(FormatTest, CustomPlaceHolderFmtStrUnregisteredPlaceHolders) {}

TEST(FormatTest, MixedFmtStr) {}