12#define BOOST_TEST_MODULE errormap test
13#define BOOST_TEST_MAIN
14#define BOOST_TEST_DYN_LINK
15#include <boost/test/unit_test.hpp>
34 em.
add(ErrorType{0}, 0, 0);
35 em.
add(ErrorType{1}, 0, 0);
36 em.
add(ErrorType{2}, 0, 0);
43 em.
add(ErrorType{0}, 0, 0);
44 em.
add(ErrorType{1}, 0, 0, 2);
45 em.
add(
Error{ErrorType{0}, 1, 2, 3});
55 em1.
add(ErrorType{0}, 0, 0);
56 em1.
add(ErrorType{1}, 0, 0);
58 em2.
add(ErrorType{0}, 1, 2);
59 em2.
add(ErrorType{0}, 0, 0);
68 em.
add(ErrorType{0}, 0, 0);
69 em.
add(ErrorType{0}, 0, 0);
70 em.
add(ErrorType{1}, 0, 0);
71 em.
add(ErrorType{0}, 1, 2);
73 std::vector<std::string> lines;
75 lines.emplace_back(fmt::format(
"ET {} ID [{},{}] seen {} time(s)",
79 BOOST_REQUIRE_EQUAL(lines.size(), 3);
char error[CURL_ERROR_SIZE]
A container class to summarize errors encountered during processing.
void forEach(ErrorFunction f) const
uint64_t getNumberOfErrors() const
void add(ErrorType errorType, uint32_t id0, uint32_t id1, uint64_t n=1)
uint64_t getNumberOfErrorTypes() const
BOOST_AUTO_TEST_CASE(DefaultErrorMapShouldBeEmpty)
BOOST_CHECK_EQUAL(triggersD.size(), triggers.size())