Update README.md
This commit is contained in:
parent
04fbe75d97
commit
e4a5a732d1
48
README.md
48
README.md
|
@ -1,3 +1,51 @@
|
|||
doc-coverage [](https://travis-ci.org/jackfirth/doc-coverage) [](https://coveralls.io/r/jackfirth/doc-coverage)
|
||||
=====================================================
|
||||
A Racket package for inspecting and testing the number of documented exports of a module
|
||||
|
||||
# Examining module documentation information:
|
||||
|
||||
```racket
|
||||
> (module->all-exported-names 'racket/promise)
|
||||
'(force
|
||||
promise-forced?
|
||||
promise-running?
|
||||
promise?
|
||||
delay
|
||||
delay/thread
|
||||
delay/name
|
||||
lazy
|
||||
delay/sync
|
||||
delay/strict
|
||||
delay/idle)
|
||||
> (module->undocumented-exported-names 'racket/match)
|
||||
'(match-...-nesting)
|
||||
```
|
||||
|
||||
# Testing module documentation coverage
|
||||
|
||||
```racket
|
||||
> (check-all-documented 'racket/base)
|
||||
--------------------
|
||||
FAILURE
|
||||
name: check-all-documented
|
||||
location: (unsaved-editor307 30 2 704 35)
|
||||
expression: (check-all-documented 'racket/base)
|
||||
params: (racket/base)
|
||||
|
||||
Module racket/base has 3 undocumented bindings:
|
||||
|
||||
expand-for-clause
|
||||
for-clause-syntax-protect
|
||||
syntax-pattern-variable?
|
||||
--------------------
|
||||
> (check-documentation-ratio 'racket/match .99)
|
||||
--------------------
|
||||
FAILURE
|
||||
name: check-documentation-ratio
|
||||
location: (unsaved-editor307 45 2 1113 45)
|
||||
expression: (check-documentation-ratio 'racket/match 0.99)
|
||||
params: (racket/match 0.99)
|
||||
|
||||
Module racket/match does not document at least 99.0% of its bindings, only documents 96.42857142857143%
|
||||
--------------------
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user