Fixes GH issue #118 "Division by zero when there are no relevant expressions #1
|
@ -151,7 +151,7 @@
|
||||||
(meta ([charset "utf-8"]))
|
(meta ([charset "utf-8"]))
|
||||||
(link ([rel "stylesheet"] [type "text/css"] [href ,(string-append assets-path "main.css")])))
|
(link ([rel "stylesheet"] [type "text/css"] [href ,(string-append assets-path "main.css")])))
|
||||||
(body ()
|
(body ()
|
||||||
,(%s->xexpr (/ covered total))
|
,(%s->xexpr (if (= total 0) 1 (/ covered total)))
|
||||||
(div ([class "code"]) ,(file->html path covered?)))))
|
(div ([class "code"]) ,(file->html path covered?)))))
|
||||||
|
|
||||||
(define (%s->xexpr %)
|
(define (%s->xexpr %)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user