#include <functional>
#include <random>
#include <string_view>
#include <vector>
#include <tuple>
#include "cmd.hpp"
Go to the source code of this file.
|
template<typename T > |
std::vector< char > | rnd_vec (T *gen, std::size_t n) |
|
template<typename T > |
auto | gen_input (T *gen) |
|
template<typename T , typename C , bool B> |
void | encode_test (auto *gen) |
|
template<typename T , typename C , bool B> |
void | decode_test (auto *gen) |
|
template<auto F> |
void | check_encode (std::string_view input, const std::vector< char > &output) |
|
template<auto F> |
void | check_decode (std::string_view input, std::string_view encoded, const std::vector< char > &output) |
|
◆ check_decode()
template<auto F>
void check_decode |
( |
std::string_view | input, |
|
|
std::string_view | encoded, |
|
|
const std::vector< char > & | output ) |
◆ check_encode()
template<auto F>
void check_encode |
( |
std::string_view | input, |
|
|
const std::vector< char > & | output ) |
◆ decode_test()
template<typename
T , typename
C , bool B>
void decode_test |
( |
auto * | gen | ) |
|
◆ encode_test()
template<typename
T , typename
C , bool B>
void encode_test |
( |
auto * | gen | ) |
|
◆ gen_input()
auto gen_input |
( |
T * | gen | ) |
|
◆ rnd_vec()
std::vector< char > rnd_vec |
( |
T * | gen, |
|
|
std::size_t | n ) |