Function: go-test--get-root-directory
go-test--get-root-directory is a natively compiled function defined in
gotest.el.
Signature
(go-test--get-root-directory)
Documentation
Return the root directory to run tests.
Source Code
;; Defined in /nix/store/y8iliarhkh17m4iiwcy1hbi78r7b5489-emacs-packages-deps/share/emacs/site-lisp/elpa/gotest-20230221.945/gotest.el
(defun go-test--get-root-directory()
"Return the root directory to run tests."
(let ((filename (buffer-file-name)))
(when filename
(file-truename (or (locate-dominating-file filename "Makefile")
"./")))))