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/execution.hpp
"
11
12
namespace
bb::avm2::simulation
{
13
14
class
MockExecution
:
public
ExecutionInterface
{
15
public
:
16
// https://google.github.io/googletest/gmock_cook_book.html#making-the-compilation-faster
17
MockExecution
();
18
~MockExecution
()
override
;
19
20
MOCK_METHOD
(
ExecutionResult
,
execute
, (
std::unique_ptr<ContextInterface>
context
), (
override
));
21
};
22
23
}
// namespace bb::avm2::simulation
bb::avm2::context
Definition
context.hpp:37
bb::avm2::simulation::ExecutionInterface
Definition
execution.hpp:46
bb::avm2::simulation::ExecutionInterface::execute
virtual ExecutionResult execute(std::unique_ptr< ContextInterface > context)=0
bb::avm2::simulation::MockExecution
Definition
mock_execution.hpp:14
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.cpp:8
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
execution.hpp
bb::avm2::simulation::ExecutionResult
Definition
execution.hpp:38
src
barretenberg
vm2
simulation
testing
mock_execution.hpp
Generated by
1.9.8