Handbook
Glossary
%coverage ( string -- x )
Coverage tool
Prev:
coverage. ( object -- )
Next:
test-coverage ( vocab -- coverage )
Vocabulary
tools
.
coverage
Inputs
string
a
string
Outputs
x
a
double
Word description
Returns a fraction representing the number of quotations called compared to the number of quotations that exist in a vocabulary or word.
Definition
USING:
assocs
kernel
math
sequences
tools.coverage.private
;
IN:
tools.coverage
:
%coverage
( string -- x )
[
test-coverage
values
concat
length
]
[
count-callables
]
bi
[
swap
-
]
keep
/f
;
inline