Coverage report: /home/ellis/comp/core/lib/vc/tests.lisp
Kind | Covered | All | % |
expression | 4 | 14 | 28.6 |
branch | 0 | 0 | nil |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
2
(:use :cl :std :rt :vc/proto :vc/git :vc/hg :vc :io/zstd :io/flate))
8
(defmacro with-temp-repo (kind &body body)
9
`(let ((repo ,(make-repo ".")))
10
(setf (path repo) (merge-pathnames (format nil "~A" (gensym "repo")) "/tmp/"))
12
(:hg (sb-mop::change-class repo 'hg-repo))
13
(:git (sb-mop::change-class repo 'git-repo))
16
(let ((*default-pathname-defaults* (path repo)))
19
(deftest git-simple ()
21
(is (streamp (sb-ext:process-output (run-git-command "status" nil :stream))))))
25
(is (streamp (sb-ext:process-output (run-hg-command "status" nil :stream))))))
28
(with-temp-repo *default-vc-kind* (is repo)))
31
(deftest vc-mirror-update (:skip t)
32
"This test replicates a nushell script we've used for a very long time - 'use
33
vc.nu; vc mirrors update;'"
37
(deftest vc-iterator (:skip t)
38
"Test iteration over a set of VC-REPOs.")
42
(let ((out #p"/tmp/bundle.hg.zst"))
43
(isequal out (vc-bundle repo out :type "zstd-v2"))