test-coverage-recursively: remove private and tests vocabs
private vocabs are already covered when testing the main vocab. test vocabs don't need coverage.db4
parent
bf473ec943
commit
485932eff1
|
@ -127,8 +127,12 @@ PRIVATE>
|
|||
] call
|
||||
] bi ;
|
||||
|
||||
: coverage-vocab? ( vocab -- ? )
|
||||
{ [ ".private" tail? ] [ ".tests" tail? ] } 1|| not ;
|
||||
|
||||
: test-coverage-recursively ( prefix -- assoc )
|
||||
child-vocabs [ dup test-coverage ] { } map>assoc ;
|
||||
child-vocabs [ coverage-vocab? ] filter
|
||||
[ dup test-coverage ] { } map>assoc ;
|
||||
|
||||
: %coverage ( string -- x )
|
||||
[ test-coverage values concat length ]
|
||||
|
|
Loading…
Reference in New Issue