Function: projectile-test-at-point-go-name
projectile-test-at-point-go-name is a byte-compiled function defined
in projectile.el.
Signature
(projectile-test-at-point-go-name NODE)
Documentation
Return the test name for the Go function_declaration NODE.
Return nil unless the function's name is one go test would run:
"Test" followed by a non-lowercase character (or nothing).
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-test-at-point-go-name (node)
"Return the test name for the Go `function_declaration' NODE.
Return nil unless the function's name is one `go test' would run:
\"Test\" followed by a non-lowercase character (or nothing)."
(when-let* ((name-node (treesit-node-child-by-field-name node "name"))
(name (treesit-node-text name-node t)))
(let ((case-fold-search nil))
(when (string-match-p "\\`Test\\([^[:lower:]]\\|\\'\\)" name)
name))))