Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_bytecode_manager.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4#include <cstdint>
5#include <memory>
6#include <optional>
7
8#include <gmock/gmock.h>
9
11
12namespace bb::avm2::simulation {
13
15 public:
16 // https://google.github.io/googletest/gmock_cook_book.html#making-the-compilation-faster
19
20 MOCK_METHOD(Instruction, read_instruction, (uint32_t pc), (override));
23};
24
25} // namespace bb::avm2::simulation
virtual Instruction read_instruction(uint32_t pc)=0
virtual std::optional< BytecodeId > try_get_bytecode_id()=0
MOCK_METHOD(BytecodeId, get_bytecode_id,(),(override))
MOCK_METHOD(std::optional< BytecodeId >, try_get_bytecode_id,(),(override))
MOCK_METHOD(Instruction, read_instruction,(uint32_t pc),(override))
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13