Home
last modified time | relevance | path

Searched refs:EXPECT_THROW_MSG (Results 1 – 7 of 7) sorted by relevance

/external/fmtlib/test/
Dformat-test.cc133 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 …]
Dgtest-extra-test.cc66 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 …]
Dprintf-test.cc86 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 …]
Dscan-test.cc21 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()
Dostream-test.cc100 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()
Dgtest-extra.h50 #define EXPECT_THROW_MSG(statement, expected_exception, expected_message) \ macro
57 EXPECT_THROW_MSG(statement, fmt::system_error, \
Dposix-mock-test.cc267 EXPECT_THROW_MSG(f.size(), fmt::windows_error, fmt::to_string(message)); in TEST()