Preserve progn-like clauses for coverage
[sbcl.git] / contrib / sb-cover / test-data-branching-forms.lisp
bloba519db0c5b0f7221a81e92a2a25b3b19e1c1cf70
1 (in-package sb-cover-test)
3 ;; Total of 13 forms have coverage data (the defun plus 12 subforms)
4 (defun test-branching-forms ()
5 ;; The tests forms here need to be a cons to have coverage data
6 ;; instrumentation, but the progn-like clauses should allow for coverage
7 ;; data instrumentation if non-empty, even if they contain a single
8 ;; atom.
10 ;; This should have coverage data for 4 forms (when, progn, t, and :foo)
11 (when (progn t)
12 :foo)
14 ;; This should have coverage data for 4 forms (unless, progn, nil, and :foo)
15 (unless (progn nil)
16 :foo)
18 ;; This should have coverage data for 4 forms (cond, progn, t, and :foo)
19 (cond
20 ((progn t) :foo)))