|
proxygen
|
#include <folly/Format.h>#include <folly/Utility.h>#include <folly/portability/GTest.h>#include <string>Go to the source code of this file.
Classes | |
| class | folly::FormatValue< KeyValue > |
| class | TestExtendingFormatter< containerMode, Args > |
| class | TestExtendingFormatter< containerMode, Args > |
| class | folly::FormatValue< NoncopyableInt > |
Namespaces | |
| folly | |
| —— Concurrent Priority Queue Implementation —— | |
Macros | |
| #define | EXPECT_THROW_STR(code, type, str) |
| #define | EXPECT_FORMAT_ERROR(code, str) EXPECT_THROW_STR(code, folly::BadFormatArg, (str)) |
Functions | |
| template<class Uint > | |
| void | compareOctal (Uint u) |
| template<class Uint > | |
| void | compareHex (Uint u) |
| template<class Uint > | |
| void | compareBinary (Uint u) |
| TEST (Format, uintToOctal) | |
| TEST (Format, uintToHex) | |
| TEST (Format, uintToBinary) | |
| TEST (Format, Simple) | |
| TEST (Format, Float) | |
| TEST (Format, MultiLevel) | |
| TEST (Format, separatorDecimalInteger) | |
| TEST (Format, separatorNumber) | |
| static void | testGrouping (const char *a_str, const char *expected) |
| TEST (Format, separatorUnit) | |
| TEST (Format, Custom) | |
| TEST (Format, Unformatted) | |
| TEST (Format, Nested) | |
| TEST (Format, OutOfBounds) | |
| TEST (Format, BogusFormatString) | |
| template<class... Args> | |
| std::string | texsformat (StringPiece fmt, Args &&...args) |
| TEST (Format, Extending) | |
| TEST (Format, Temporary) | |
| TEST (Format, NoncopyableArg) | |
| #define EXPECT_FORMAT_ERROR | ( | code, | |
| str | |||
| ) | EXPECT_THROW_STR(code, folly::BadFormatArg, (str)) |
Definition at line 408 of file FormatTest.cpp.
Referenced by TEST().
| #define EXPECT_THROW_STR | ( | code, | |
| type, | |||
| str | |||
| ) |
Definition at line 384 of file FormatTest.cpp.
Referenced by TEST().
| void compareBinary | ( | Uint | u | ) |
Definition at line 54 of file FormatTest.cpp.
References EXPECT_EQ, folly::detail::kMaxBinaryLength, string, and folly::detail::uintToBinary().
Referenced by TEST().
| void compareHex | ( | Uint | u | ) |
Definition at line 40 of file FormatTest.cpp.
References EXPECT_EQ, EXPECT_LT, folly::detail::kMaxHexLength, string, and folly::detail::uintToHexLower().
Referenced by TEST().
| void compareOctal | ( | Uint | u | ) |
Definition at line 26 of file FormatTest.cpp.
References EXPECT_EQ, EXPECT_LT, folly::detail::kMaxOctalLength, string, and folly::detail::uintToOctal().
Referenced by TEST().
| TEST | ( | Format | , |
| uintToOctal | |||
| ) |
| TEST | ( | Format | , |
| uintToHex | |||
| ) |
| TEST | ( | Format | , |
| uintToBinary | |||
| ) |
| TEST | ( | Format | , |
| Simple | |||
| ) |
Definition at line 91 of file FormatTest.cpp.
References folly::defaulted(), EXPECT_EQ, EXPECT_FALSE, EXPECT_NE, EXPECT_STREQ, EXPECT_THROW, folly::format(), folly::FormatKeyNotFoundException::key(), m, s, folly::sformat(), string, folly::svformat(), and folly::pushmi::detail::t.
| TEST | ( | Format | , |
| Float | |||
| ) |
| TEST | ( | Format | , |
| MultiLevel | |||
| ) |
Definition at line 243 of file FormatTest.cpp.
References EXPECT_EQ, and folly::sformat().
| TEST | ( | Format | , |
| separatorDecimalInteger | |||
| ) |
Definition at line 253 of file FormatTest.cpp.
References EXPECT_EQ, int64_t, max, min, folly::sformat(), and uint64_t.
| TEST | ( | Format | , |
| separatorNumber | |||
| ) |
Definition at line 292 of file FormatTest.cpp.
References EXPECT_EQ, int64_t, max, min, folly::sformat(), and uint64_t.
| TEST | ( | Format | , |
| separatorUnit | |||
| ) |
Definition at line 322 of file FormatTest.cpp.
References string, testGrouping(), and folly::value().
| TEST | ( | Format | , |
| Custom | |||
| ) |
Definition at line 364 of file FormatTest.cpp.
References EXPECT_EQ, EXPECT_NE, k, and folly::sformat().
| TEST | ( | Format | , |
| Unformatted | |||
| ) |
Definition at line 411 of file FormatTest.cpp.
References EXPECT_FORMAT_ERROR, EXPECT_NE, and folly::sformat().
| TEST | ( | Format | , |
| Nested | |||
| ) |
Definition at line 418 of file FormatTest.cpp.
References EXPECT_EQ, folly::format(), and folly::sformat().
| TEST | ( | Format | , |
| OutOfBounds | |||
| ) |
Definition at line 426 of file FormatTest.cpp.
References EXPECT_EQ, EXPECT_THROW, folly::sformat(), and folly::svformat().
| TEST | ( | Format | , |
| BogusFormatString | |||
| ) |
Definition at line 437 of file FormatTest.cpp.
References testing::Args(), EXPECT_FORMAT_ERROR, EXPECT_THROW_STR, folly::sformat(), and folly::svformat().
| TEST | ( | Format | , |
| Extending | |||
| ) |
Definition at line 510 of file FormatTest.cpp.
References EXPECT_EQ, folly::sformat(), and texsformat().
| TEST | ( | Format | , |
| Temporary | |||
| ) |
Definition at line 526 of file FormatTest.cpp.
References EXPECT_EQ, folly::format(), and folly::value().
| TEST | ( | Format | , |
| NoncopyableArg | |||
| ) |
Definition at line 561 of file FormatTest.cpp.
References EXPECT_EQ, folly::format(), and v.
|
static |
Definition at line 314 of file FormatTest.cpp.
References ASSERT_LT, ASSERT_STREQ, and folly::detail::insertThousandsGroupingUnsafe().
Referenced by TEST().
| std::string texsformat | ( | StringPiece | fmt, |
| Args &&... | args | ||
| ) |
Definition at line 504 of file FormatTest.cpp.
References testing::Args().
Referenced by TEST().