cover/tests/do-syntax.rkt
Spencer Florence 2ae091805e Fixes #79 #77 and #59
Roughly this commit switches the instrumentation mechanism to use
logging instead of a global hash table. This allows cover to work
across phases, and means that cover no longer needs to lift definitions
at compile time, fixing some submodule bugs.
2015-07-16 18:38:52 -05:00

13 lines
427 B
Racket

#lang racket
(require cover rackunit racket/runtime-path)
(define-runtime-path syntax.rkt "syntax.rkt")
(test-begin
(parameterize ([current-cover-environment (make-cover-environment)])
(test-files! syntax.rkt)
(define x (get-test-coverage))
(define c?
(curry x (path->string syntax.rkt)))
(for ([i (in-naturals 1)]
[_ (in-string (file->string syntax.rkt))])
(check-not-eq? (c? i) 'uncovered (~a i)))))