Example #1
0
TEST(test_sliding_window_codes, basic_api)
{
    if (kodoc_has_codec(kodoc_sliding_window) == false)
        return;

    uint32_t max_symbols = rand_symbols();
    uint32_t max_symbol_size = rand_symbol_size();

    test_basic_api(kodoc_sliding_window, max_symbols, max_symbol_size);
}
TEST(test_on_the_fly_codes, basic_api)
{
    if (kodoc_has_codec(kodoc_on_the_fly) == false)
        return;

    uint32_t max_symbols = rand_symbols();
    uint32_t max_symbol_size = rand_symbol_size();

    test_basic_api(kodoc_on_the_fly, max_symbols, max_symbol_size);
}
Example #3
0
inline void test_basic_api(int32_t coder_type, uint32_t symbols,
                           uint32_t symbol_size)
{
    test_basic_api(coder_type, coder_type, symbols, symbol_size);
}