| 155 | } |
| 156 | |
| 157 | template <size_t N> inline |
| 158 | std::string random_binary_string(std::mt19937 & gen) |
| 159 | { |
| 160 | std::string s(N, ' '); |
| 161 | for(auto & c : s ) |
| 162 | c = static_cast<char>( std::uniform_int_distribution<int>( '0', '1' )(gen) ); |
| 163 | return s; |
| 164 | } |
| 165 | |
| 166 | // Generic struct useful for testing many serialization functions |
| 167 | struct StructBase |
nothing calls this directly
no outgoing calls
no test coverage detected