Closed jackfirth closed 7 years ago
What happens if the you export the macro and use it in a separate file?
(and run both files through cover)
That seems to fix it! I moved the syntax class definition into a submodule instead of its own file though:
#lang racket
(require syntax/parse/define
rackunit)
(module stx-class racket/base
(require (for-template racket/base)
syntax/parse)
(provide stx-class)
(define-syntax-class stx-class
(pattern expr:expr
#:attr attr
#'(add1 expr))))
(require (for-syntax 'stx-class))
(define-simple-macro (foo cls:stx-class) cls.attr)
(check-equal? (foo 5) 6)
Now cover reports no uncovered expressions. Here's an image of the HTML coverage output.
Is this the same issue as #130?
Marking as duplicate of #133
Given this program:
Cover reports that the
#'
element is uncovered. Using(syntax (add1 expr))
doesn't change this.