Emacs: Add "-cover" to "go test"
parent
1a4fb5870d
commit
bf88b087a0
|
@ -16,7 +16,7 @@ If `compile-command' is \"go build\":
|
|||
(set (make-local-variable 'compile-command)
|
||||
(if (string= compile-command "go build")
|
||||
(concat "go run " (shell-quote-argument buffer-file-name))
|
||||
(if (go-buffer-in-gopath-p) (if (string-match "_test.[gG][oO]$" buffer-file-name) "go test -v" "go install") "go build")))
|
||||
(if (go-buffer-in-gopath-p) (if (string-match "_test.[gG][oO]$" buffer-file-name) "go test -cover -v" "go install") "go build")))
|
||||
(message "Set `compile-command' to `%s'" compile-command))
|
||||
|
||||
(defun go-buffer-in-gopath-p ()
|
||||
|
|
Loading…
Reference in New Issue