Function: go-test--go-test
go-test--go-test is a natively compiled function defined in gotest.el.
Signature
(go-test--go-test ARGS &optional ENV)
Documentation
Start the go test command using ARGS.
Source Code
;; Defined in /nix/store/y8iliarhkh17m4iiwcy1hbi78r7b5489-emacs-packages-deps/share/emacs/site-lisp/elpa/gotest-20230221.945/gotest.el
;; (defun go-test-compilation-hook (p)
;; "Add compilation hooks."
;; (set (make-local-variable 'compilation-error-regexp-alist-alist)
;; go-test-compilation-error-regexp-alist-alist)
;; (set (make-local-variable 'compilation-error-regexp-alist)
;; go-test-compilation-error-regexp-alist))
;; (defun go-test-run (args)
;; (add-hook 'compilation-start-hook 'go-test-compilation-hook)
;; (compile (go-test--get-program (go-test--arguments args)))
;; (remove-hook 'compilation-start-hook 'go-test-compilation-hook))
(defun go-test--go-test (args &optional env)
"Start the go test command using `ARGS'."
(let ((buffer "*Go Test*")) ; (concat "*go-test " args "*")))
(go-test--cleanup buffer)
(compilation-start (go-test--get-program (go-test--arguments args) env)
'go-test-mode
'go-test--compilation-name)
(with-current-buffer "*Go Test*"
(rename-buffer buffer))
(set-process-sentinel (get-buffer-process buffer) 'go-test--finished-sentinel)))