Function: go-ts-mode-test-this-file
go-ts-mode-test-this-file is an interactive and byte-compiled function
defined in go-ts-mode.el.gz.
Signature
(go-ts-mode-test-this-file)
Documentation
Run all the unit tests in the current file.
Probably introduced at or before Emacs version 31.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/go-ts-mode.el.gz
(defun go-ts-mode-test-this-file ()
"Run all the unit tests in the current file."
(interactive)
(if-let* ((defuns (go-ts-mode--get-functions-in-range (point-min) (point-max))))
(go-ts-mode--compile-test (string-join defuns "|"))
(error "No test functions found in the current file")))