BloombergLP::bdlt::FuzzUtil::consumeDateInRange

Return a Date between the specified begin and end dates.

Synopsis

Declared in <bdlt_fuzzutil.h>

static
bdlt::Date
consumeDateInRange(
    bslim::FuzzDataView* fuzzDataView,
    bdlt::Date const& begin,
    bdlt::Date const& end);

Description

Return a Date between the specified begin and end dates based on the next bytes from the specified fuzzDataView, and update fuzzDataView to reflect the bytes consumed. The behavior is undefined unless begin <= end.

Return Value

a Date between begin and end

Parameters

NameDescription
fuzzDataViewview providing fuzz input bytes
begininclusive lower bound date
endinclusive upper bound date