Hello folks,
This patch adds two new commands for go-ts-mode to run unit test cases.
The go-ts-mode-test-package command can run all the tests under the package of
the current buffer. I've tested it to work with both Go module packages and
non-module packages. This command is bound to C-c C-p in the go-ts-mode-map.
The go-ts-mode-test-function-at-point command runs the current test function. If
region is active then it runs all the test functions under the region. I'm
attaching a sample_test.go file as well for reviewers to test the patch. This
command is bound to C-c C-t in the go-ts-mode-map.
--
Ankit