Add converter tests with throw_on_error

This commit is contained in:
ado
2023-07-09 17:11:52 +02:00
parent f3225b8b16
commit 41b89d1d3d
6 changed files with 527 additions and 27 deletions

View File

@@ -79,3 +79,13 @@ struct buffer {
}
#define CHECK_NOT_VARIANT(var, type) CHECK(!std::holds_alternative<type>(var));
// TODO remove
#include <iostream>
#define REQUIRE_EXCEPTION(...) \
try { \
__VA_ARGS__; \
FAIL("Expected exception"); \
} catch (ss::exception & e) { \
CHECK_FALSE(std::string{e.what()}.empty()); \
}