Electroneum
BlockFuzzer Class Reference
Inheritance diagram for BlockFuzzer:
Collaboration diagram for BlockFuzzer:

Public Member Functions

virtual int run (const std::string &filename)
 
- Public Member Functions inherited from Fuzzer
virtual int init ()
 

Detailed Description

Definition at line 37 of file block.cpp.

Member Function Documentation

◆ run()

int BlockFuzzer::run ( const std::string &  filename)
virtual

Implements Fuzzer.

Definition at line 45 of file block.cpp.

46 {
47  std::string s;
48 
50  {
51  std::cout << "Error: failed to load file " << filename << std::endl;
52  return 1;
53  }
56  {
57  std::cout << "Error: failed to parse block from file " << filename << std::endl;
58  return 1;
59  }
60  return 0;
61 }
::std::string string
Definition: gtest-port.h:1097
bool load_file_to_string(const std::string &path_to_file, std::string &target_str, size_t max_size=1000000000)
#define AUTO_VAL_INIT(v)
Definition: misc_language.h:53
bool parse_and_validate_block_from_blob(const blobdata &b_blob, block &b, crypto::hash *block_hash)
Here is the call graph for this function:

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