Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
response_test_fixture::mock_data_handler_provider Struct Reference
Collaboration diagram for response_test_fixture::mock_data_handler_provider:

Public Member Functions

 mock_data_handler_provider (response_test_fixture &fixture)
 
template<typename ActionTrace >
std::tuple< fc::variant, std::optional< fc::variant > > serialize_to_variant (const ActionTrace &action, const yield_function &yield)
 

Public Attributes

response_test_fixturefixture
 

Detailed Description

Definition at line 43 of file test_responses.cpp.

Constructor & Destructor Documentation

◆ mock_data_handler_provider()

response_test_fixture::mock_data_handler_provider::mock_data_handler_provider ( response_test_fixture & fixture)
inline

Definition at line 44 of file test_responses.cpp.

Member Function Documentation

◆ serialize_to_variant()

template<typename ActionTrace >
std::tuple< fc::variant, std::optional< fc::variant > > response_test_fixture::mock_data_handler_provider::serialize_to_variant ( const ActionTrace & action,
const yield_function & yield )
inline

Definition at line 49 of file test_responses.cpp.

49 {
50 if constexpr(std::is_same_v<ActionTrace, action_trace_v0>){
51 return fixture.mock_data_handler_v0(action, yield);
52 }
53 else if constexpr(std::is_same_v<ActionTrace, action_trace_v1>){
54 return fixture.mock_data_handler_v1(action, yield);
55 }
56 }
std::function< std::tuple< fc::variant, std::optional< fc::variant > >(const action_trace_v1 &, const yield_function &)> mock_data_handler_v1
std::function< std::tuple< fc::variant, std::optional< fc::variant > >(const action_trace_v0 &, const yield_function &)> mock_data_handler_v0

Member Data Documentation

◆ fixture

response_test_fixture& response_test_fixture::mock_data_handler_provider::fixture

Definition at line 58 of file test_responses.cpp.


The documentation for this struct was generated from the following file: