Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_merkle_check.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <gmock/gmock.h>
4
7
8namespace bb::avm2::simulation {
9
11 public:
13 ~MockMerkleCheck() override;
14
17 (const FF& leaf_value, const uint64_t leaf_index, std::span<const FF> sibling_path, const FF& root),
18 (override));
20 write,
21 (const FF& current_value,
22 const FF& new_value,
23 const uint64_t leaf_index,
24 std::span<const FF> sibling_path,
25 const FF& current_root),
26 (override));
27};
28
29} // namespace bb::avm2::simulation
virtual void assert_membership(const FF &leaf_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &root)=0
virtual FF write(const FF &current_value, const FF &new_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &current_root)=0
MOCK_METHOD(FF, write,(const FF &current_value, const FF &new_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &current_root),(override))
MOCK_METHOD(void, assert_membership,(const FF &leaf_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &root),(override))
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13