Function: go-test--get-program

go-test--get-program is a natively compiled function defined in gotest.el.

Signature

(go-test--get-program ARGS &optional ENV)

Documentation

Return the command to launch unit test.

ARGS corresponds to go command line arguments. When ENV concatenate before command.

Source Code

;; Defined in /nix/store/y8iliarhkh17m4iiwcy1hbi78r7b5489-emacs-packages-deps/share/emacs/site-lisp/elpa/gotest-20230221.945/gotest.el
;; Commands
;; -----------


(defun go-test--get-program (args &optional env)
  "Return the command to launch unit test.
`ARGS' corresponds to go command line arguments.
When `ENV' concatenate before command."
  (let ((command-args (s-concat (or go-test-go-command "go") " test " args)))
    (if env
        (s-concat env " " command-args)
      command-args)))