Function RepeatGenerator

Synopsis

#include <include/internal/catch_generators_generic.hpp>

RepeatGenerator(size_t repeats, GeneratorWrapper< T > &&generator)

Description

No description yet.

Source

Lines 104-109 in include/internal/catch_generators_generic.hpp.

RepeatGenerator(size_t repeats, GeneratorWrapper<T>&& generator):
    m_generator(std::move(generator)),
    m_target_repeats(repeats)
{
    assert(m_target_repeats > 0 && "Repeat generator must repeat at least once");
}





Add Discussion as Guest

Log in