YAML Coverage Data Format
The YAML coverage-data format is used to represent functional coverage data in a manner that is accurate and relatively easy for humans and tools to create and process.
Format Reference
Coverage Data
PyUCIS JSON Coverage Data |
|||
type |
object |
||
properties |
|||
|
type |
object |
|
properties |
|||
|
List of covergroup types |
||
type |
array |
||
items |
Every coverage-data document has a coverage element as its root. Currently, the only sub-elements is a list of covergroup types.
Type Covergroup
Holds data about a single covergroup type |
||
type |
object |
|
properties |
||
|
Type name of the covergroup |
|
type |
string |
|
|
Weight this covergroup is given against the others |
|
type |
integer |
|
|
List of covergroup instances of this type |
|
type |
array |
|
items |
A type covergroup provides data about a covergroup type. All instances of a covergroup type have the same coverpoints and crosses. All coverpoints in instances of a covergroup type have the same bins. Merged type coverage (the union of coverage achieved by all instances) is derived by PyUCIS from the instance coverage, and is not specified in the coverage file.
Inst Covergroup
Holds data about a single covergroup instance |
||
type |
object |
|
properties |
||
|
Instance name of this covergroup |
|
type |
string |
|
|
List of coverpoints |
|
type |
array |
|
items |
||
|
List of crosses |
|
type |
array |
|
items |
An instance covergroup provides data about a covergroup instance.
Coverpoint
Holds data about a single instance coverpoint |
||
type |
object |
|
properties |
||
|
Name of the coverpoint |
|
type |
string |
|
|
Number of bin hits required for coverage (default=1) |
|
type |
integer |
|
|
List of coverage bins |
|
type |
array |
|
items |
||
|
List of ignore bins |
|
type |
array |
|
items |
||
|
List of illegal bins |
|
type |
array |
|
items |
A coverpoint lists a set of bins that it is monitoring. Each coverpoint can specify an atleast count to specify that a bin must contain atleast hits in order to count as being covered. By default, atleast is 1.
Cross
type |
object |
||
properties |
|||
|
Cross name |
||
type |
string |
||
|
Number of bin hits required for coverage (default=1) |
||
type |
integer |
||
|
List of coverpoint members of this cross |
||
type |
array |
||
items |
type |
string |
|
|
List of cross bins |
||
type |
array |
||
items |
A cross lists the set of coverpoints from which it is composed, and lists its cross bins. Each cross can specify an atleast count to specify that a bin must contain atleast hits in order to count as being covered. By default, atleast is 1.
Coverage Bin
type |
object |
|
properties |
||
|
Bin name |
|
type |
string |
|
|
Hits in this bin |
|
type |
integer |
A coverbin associates a bin name with the number of hits in that bin.