Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
macros.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <stdexcept>
4
5
#include "
barretenberg/vm2/tracegen/test_trace_container.hpp
"
6
7
#define EXPECT_THROW_WITH_MESSAGE(code, expectedMessage) \
8
try { \
9
code; \
10
FAIL() << "Expected exception with message: " << expectedMessage; \
11
} catch (const std::exception& e) { \
12
EXPECT_THAT(e.what(), ::testing::ContainsRegex(expectedMessage)); \
13
}
14
15
#define ROW_FIELD_EQ(field_name, expression) \
16
::testing::Field(#field_name, &TestTraceContainer::Row::field_name, expression)
test_trace_container.hpp
src
barretenberg
vm2
testing
macros.hpp
Generated by
1.9.8