Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
tester.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <sysio/testing/tester.hpp>
#include <sysio/chain/block_log.hpp>
#include <sysio/chain/wast_to_wasm.hpp>
#include <sysio/chain/sysio_contract.hpp>
#include <sysio/chain/generated_transaction_object.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/copy.hpp>
#include <boost/iostreams/filter/gzip.hpp>
#include <fstream>
#include <contracts.hpp>
Include dependency graph for tester.cpp:

Go to the source code of this file.

Namespaces

namespace  sysio
 
namespace  sysio::testing
 

Functions

sysio::chain::asset core_from_string (const std::string &s)
 
std::string sysio::testing::read_wast (const char *fn)
 
std::vector< uint8_tsysio::testing::read_wasm (const char *fn)
 
std::vector< char > sysio::testing::read_abi (const char *fn)
 
std::string sysio::testing::read_binary_snapshot (const char *fn)
 
fc::variant sysio::testing::read_json_snapshot (const char *fn)
 
bool sysio::testing::expect_assert_message (const fc::exception &ex, string expected)
 
fc::variant_object sysio::testing::filter_fields (const fc::variant_object &filter, const fc::variant_object &value)
 
void sysio::testing::copy_row (const chain::key_value_object &obj, vector< char > &data)
 
protocol_feature_set sysio::testing::make_protocol_feature_set (const subjective_restriction_map &custom_subjective_restrictions={})
 
 sysio::testing::FC_CAPTURE_AND_RETHROW ((account)) void base_tester
 
std::ostream & operator<< (std::ostream &osm, const fc::variant &v)
 sysio::testing
 
std::ostream & operator<< (std::ostream &osm, const fc::variant_object &v)
 
std::ostream & operator<< (std::ostream &osm, const fc::variant_object::entry &e)
 

Function Documentation

◆ core_from_string()

sysio::chain::asset core_from_string ( const std::string & s)

Definition at line 18 of file tester.cpp.

18 {
19 return sysio::chain::asset::from_string(s + " " CORE_SYMBOL_NAME);
20}
static asset from_string(const string &from)
Definition asset.cpp:31
char * s
Here is the call graph for this function:

◆ operator<<() [1/3]

std::ostream & operator<< ( std::ostream & osm,
const fc::variant & v )

Definition at line 1277 of file tester.cpp.

1277 {
1278 //fc::json::to_stream( osm, v );
1279 osm << fc::json::to_pretty_string( v );
1280 return osm;
1281}
static string to_pretty_string(const variant &v, const yield_function_t &yield, const output_formatting format=output_formatting::stringify_large_ints_and_doubles)
Definition json.cpp:775
Here is the call graph for this function:

◆ operator<<() [2/3]

std::ostream & operator<< ( std::ostream & osm,
const fc::variant_object & v )

Definition at line 1283 of file tester.cpp.

1283 {
1284 osm << fc::variant(v);
1285 return osm;
1286}
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Definition variant.hpp:191

◆ operator<<() [3/3]

std::ostream & operator<< ( std::ostream & osm,
const fc::variant_object::entry & e )

Definition at line 1288 of file tester.cpp.

1288 {
1289 osm << "{ " << e.key() << ": " << e.value() << " }";
1290 return osm;
1291}
const string & key() const
const variant & value() const
Here is the call graph for this function: