coverage ( object -- seq ) (original) (raw)
coverage ( object -- seq )
Coverage tool
Prev: | coverage-off ( -- ) |
---|---|
Next: | coverage. ( object -- ) |
Inputs
object | an object |
---|
Outputs
seq | a sequence |
---|
Word description
Outputs a sequence of quotations that were not called since coverage tracking was enabled. If the input is a string, the output is an alist of word-name/quotations that were not used. If the input is a word name, the output is a sequence of quotations.
Definition
GENERIC: coverage ( object -- seq )
Methods
USING: arrays kernel strings tools.coverage ;
M: string coverage [ dup coverage 2array ] map-words ;
USING: accessors assocs tools.coverage words ;
M: word coverage
"coverage" word-prop [ executed?>> ] reject-keys values ;