Support collection of a model coverage during generation #78
Labels
code: enhancement
New feature or improvement
part: generators
Related to generators
part: model coverage
Related to model coverage of generators
status: feature request
Request for new functionality or improvement
It would be good to collect some information about model coverage, i.e. coverage in terms of the original data type (for derived generators) and/or coverage in terms of alternatives inside a generator.
The topic is not univocal, there are definitely a ton of ways how such coverage can be gained and how can it be represented. We'd like to increase slowly starting from collecting just which types and type families were present during a series of generation disregarding the position of this generation, say, in recursion; then we can continue with adding information about which particular constructors were actually used in generation in particular types or type families, again disregarding the position. Then, we can further refine this, say, by considering the position in the generation tree, or by considering coverage of constructors separately for different values of indices for indexed type families.
For the first two steps, there are at least the following steps to be done:
unGen
. Having additionally description values ofoneOf
s, using this indexed data structure, we can at least know which data type families were tried to generate a value.oneOf
s to contain particular information about particular constructors. It would allow us to evaluate model coverage more precisely. This all, of course, applied only to derived generators, and to generators, whose authors added descriptions corresponding to the derived ones.Maybe String
, but some our customFromString
type, which may contain type itself, and, possibly, aVect
of subdescriptions for each alternative.%macro
, which can fill appropriate description of a hand-written generators.The text was updated successfully, but these errors were encountered: