5#include <gtest/gtest.h>
9TEST(APIFileIO, ManyFromBufferExactRejectsTrailingBytes)
11 std::vector<uint8_t> bytes(
sizeof(
uint256_t) + 1, 0);
14 "UltraHonk proof file size must be a multiple of 32 bytes, got 33");
17TEST(APIFileIO, ManyFromBufferExactAcceptsAlignedBuffers)
22 auto parsed = many_from_buffer_exact<uint256_t>(bytes,
"UltraHonk proof file");
24 EXPECT_EQ(parsed, expected);
#define EXPECT_THROW_WITH_MESSAGE(code, expectedMessageRegex)
TEST(APIFileIO, ManyFromBufferExactRejectsTrailingBytes)
Entry point for Barretenberg command-line interface.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
std::vector< uint8_t > to_buffer(T const &value)