/external/fmtlib/test/ |
D | format-test.cc | 133 EXPECT_THROW_MSG( in TEST() 139 EXPECT_THROW_MSG( in TEST() 363 EXPECT_THROW_MSG(fmt::detail::utf8_to_utf16("\xc3\x28"), std::runtime_error, in TEST() 365 EXPECT_THROW_MSG(fmt::detail::utf8_to_utf16(fmt::string_view("л", 1)), in TEST() 479 EXPECT_THROW_MSG(format("{"), format_error, "invalid format string"); in TEST() 480 EXPECT_THROW_MSG(format("}"), format_error, "unmatched '}' in format string"); in TEST() 481 EXPECT_THROW_MSG(format("{0{}"), format_error, "invalid format string"); in TEST() 497 EXPECT_THROW_MSG(format("{"), format_error, "invalid format string"); in TEST() 498 EXPECT_THROW_MSG(format("{?}"), format_error, "invalid format string"); in TEST() 499 EXPECT_THROW_MSG(format("{0"), format_error, "invalid format string"); in TEST() [all …]
|
D | gtest-extra-test.cc | 66 EXPECT_THROW_MSG(throw_exception(), std::exception, p_++), "01234"); in TEST_F() 81 EXPECT_THROW_MSG( in TEST_F() 91 EXPECT_NONFATAL_FAILURE(EXPECT_THROW_MSG( in TEST_F() 102 EXPECT_NONFATAL_FAILURE(EXPECT_THROW_MSG( in TEST_F() 114 EXPECT_THROW_MSG(a_++, std::exception, (b_++, "test")), "throws nothing"); in TEST_F() 217 EXPECT_THROW_MSG(throw runtime_error(""), runtime_error, ""); in TEST() 218 EXPECT_NONFATAL_FAILURE(EXPECT_THROW_MSG(n++, runtime_error, ""), ""); in TEST() 219 EXPECT_NONFATAL_FAILURE(EXPECT_THROW_MSG(throw 1, runtime_error, ""), ""); in TEST() 221 EXPECT_THROW_MSG(throw runtime_error("a"), runtime_error, "b"), ""); in TEST() 238 EXPECT_THROW_MSG(do_nothing(), std::exception, ""); in TEST() [all …]
|
D | printf-test.cc | 86 EXPECT_THROW_MSG(test_sprintf(format("%{}$", BIG_NUM)), format_error, in TEST() 88 EXPECT_THROW_MSG(test_sprintf(format("%{}$d", BIG_NUM)), format_error, in TEST() 93 EXPECT_THROW_MSG(test_sprintf("%1$d%", 1, 2), format_error, in TEST() 95 EXPECT_THROW_MSG(test_sprintf(format("%1$d%{}d", BIG_NUM), 1, 2), in TEST() 97 EXPECT_THROW_MSG(test_sprintf("%1$d%d", 1, 2), format_error, in TEST() 100 EXPECT_THROW_MSG(test_sprintf("%d%1$", 1, 2), format_error, in TEST() 102 EXPECT_THROW_MSG(test_sprintf(format("%d%{}$d", BIG_NUM), 1, 2), format_error, in TEST() 104 EXPECT_THROW_MSG(test_sprintf("%d%1$d", 1, 2), format_error, in TEST() 108 EXPECT_THROW_MSG(test_sprintf(format("%d%1${}d", BIG_NUM), 1, 2), in TEST() 110 EXPECT_THROW_MSG(test_sprintf(format("%1$d%{}d", BIG_NUM), 1, 2), in TEST() [all …]
|
D | scan-test.cc | 21 EXPECT_THROW_MSG(fmt::scan("fob", "foo"), fmt::format_error, "invalid input"); in TEST() 44 EXPECT_THROW_MSG(fmt::scan("-42", "{}", n), fmt::format_error, in TEST() 52 EXPECT_THROW_MSG(fmt::scan("-42", "{}", n), fmt::format_error, in TEST() 104 EXPECT_THROW_MSG(fmt::scan("", "{}"), fmt::format_error, in TEST() 106 EXPECT_THROW_MSG(fmt::scan("", "{"), fmt::format_error, in TEST()
|
D | ostream-test.cc | 100 EXPECT_THROW_MSG(format("{0:=5}", TestString("def")), format_error, in TEST() 105 EXPECT_THROW_MSG(format("{0:+}", TestString()), format_error, in TEST() 107 EXPECT_THROW_MSG(format("{0:-}", TestString()), format_error, in TEST() 109 EXPECT_THROW_MSG(format("{0: }", TestString()), format_error, in TEST() 111 EXPECT_THROW_MSG(format("{0:#}", TestString()), format_error, in TEST() 113 EXPECT_THROW_MSG(format("{0:05}", TestString()), format_error, in TEST()
|
D | gtest-extra.h | 50 #define EXPECT_THROW_MSG(statement, expected_exception, expected_message) \ macro 57 EXPECT_THROW_MSG(statement, fmt::system_error, \
|
D | posix-mock-test.cc | 267 EXPECT_THROW_MSG(f.size(), fmt::windows_error, fmt::to_string(message)); in TEST()
|