Function: go-test--is-gb-project
go-test--is-gb-project is a natively compiled function defined in
gotest.el.
Signature
(go-test--is-gb-project)
Documentation
Check if project use GB or not.
Source Code
;; Defined in /nix/store/y8iliarhkh17m4iiwcy1hbi78r7b5489-emacs-packages-deps/share/emacs/site-lisp/elpa/gotest-20230221.945/gotest.el
;; (defun gb-test-run (args)
;; "Test using GB.
;; `ARGS' corresponds to command line arguments."
;; (add-hook 'compilation-start-hook 'go-test-compilation-hook)
;; (compile (go-test--gb-get-program args))
;; (remove-hook 'compilation-start-hook 'go-test-compilation-hook))
(defun go-test--is-gb-project ()
"Check if project use GB or not."
(let* ((go-test-gb-command (executable-find go-test-gb-command))
(default-directory (if go-test-gb-command (go-test--get-root-directory))))
(and go-test-gb-command
default-directory
(f-dir? "src")
(f-exists? "vendor/manifest"))))