Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_execution.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
#include <memory>
5
#include <span>
6
7
#include <gmock/gmock.h>
8
9
#include "
barretenberg/vm2/common/memory_types.hpp
"
10
#include "
barretenberg/vm2/simulation/interfaces/context.hpp
"
11
#include "
barretenberg/vm2/simulation/interfaces/execution.hpp
"
12
13
namespace
bb::avm2::simulation
{
14
15
class
MockExecution
:
public
ExecutionInterface
{
16
public
:
17
// https://google.github.io/googletest/gmock_cook_book.html#making-the-compilation-faster
18
MockExecution
();
19
~MockExecution
()
override
;
20
21
MOCK_METHOD
(
ExecutionResult
,
execute
, (
std::unique_ptr<ContextInterface>
context
), (
override
));
22
};
23
24
}
// namespace bb::avm2::simulation
bb::avm2::context
Definition
context.hpp:37
bb::avm2::simulation::ExecutionInterface
Definition
execution.hpp:24
bb::avm2::simulation::ExecutionInterface::execute
virtual ExecutionResult execute(std::unique_ptr< ContextInterface > context)=0
bb::avm2::simulation::MockExecution
Definition
mock_execution.hpp:15
bb::avm2::simulation::MockExecution::MOCK_METHOD
MOCK_METHOD(ExecutionResult, execute,(std::unique_ptr< ContextInterface > context),(override))
bb::avm2::simulation::MockExecution::MockExecution
MockExecution()
bb::avm2::simulation::MockExecution::~MockExecution
~MockExecution() override
memory_types.hpp
bb::avm2::simulation
Definition
address_derivation_event.hpp:6
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
context.hpp
execution.hpp
bb::avm2::simulation::ExecutionResult
Definition
execution.hpp:16
src
barretenberg
vm2
simulation
testing
mock_execution.hpp
Generated by
1.9.8