coverage ( object -- seq ) - Factor Documentation

coverage ( object -- seq )
Coverage tool



Vocabulary
tools .coverage

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
IN: tools.coverage

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 ;

AltStyle によって変換されたページ (->オリジナル) /