Function: go-ts-mode--get-test-regexp-at-point
go-ts-mode--get-test-regexp-at-point is a byte-compiled function
defined in go-ts-mode.el.gz.
Signature
(go-ts-mode--get-test-regexp-at-point)
Documentation
Return a regular expression for the tests at point.
If region is active, the regexp will include all the functions under the region.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/go-ts-mode.el.gz
(defun go-ts-mode--get-test-regexp-at-point ()
"Return a regular expression for the tests at point.
If region is active, the regexp will include all the functions under the
region."
(if-let* ((range (if (region-active-p)
(list (region-beginning) (region-end))
(list (point) (point))))
(funcs (apply #'go-ts-mode--get-functions-in-range range)))
(string-join funcs "|")
(error "No test function found")))