Function: go-test--get-current-file-testing-data

go-test--get-current-file-testing-data is a natively compiled function defined in gotest.el.

Signature

(go-test--get-current-file-testing-data)

Documentation

Regex with unit test and|or examples.

Source Code

;; Defined in /nix/store/y8iliarhkh17m4iiwcy1hbi78r7b5489-emacs-packages-deps/share/emacs/site-lisp/elpa/gotest-20230221.945/gotest.el
(defun go-test--get-current-file-testing-data ()
  "Regex with unit test and|or examples."
  (let ((tests (go-test--get-current-file-tests))
        (examples (go-test--get-current-file-examples)))
    (cond ((and (> (length tests) 0)
                (> (length examples) 0))
           (s-concat tests "|" examples))
          ((= (length tests) 0)
           examples)
          ((= (length examples) 0)
           tests))))