File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 42
42
" -check.f"
43
43
" -run" )))
44
44
(save-excursion
45
- (re-search-backward " ^func[ ]+( [[:alnum:]]*?[ ]?[*]?\\ ( [[:alnum:]]+\\ )) [ ]+\\ (Test[[:alnum:]]+\\ )(.*)" )
45
+ (re-search-backward " ^func[ ]+\\ (( [[:alnum:]]*?[ ]?[*]?[[:alnum:]]+) [ ]+\\ )? \\ (Test[[:alnum:]]+\\ )(.*)" )
46
46
(spacemacs/go-run-tests (concat test-method " ='" (match-string-no-properties 2 ) " '" ))))
47
47
(message " Must be in a _test.go file to run go-run-test-current-function " )))
48
48
51
51
(if (string-match " _test\. go" buffer-file-name)
52
52
(if go-use-gocheck-for-testing
53
53
(save-excursion
54
- (re-search-backward " ^func[ ]+( [[:alnum:]]*?[ ]?[*]?\\ ([[:alnum:]]+\\ ))[ ]+\\ ( Test[[:alnum:]]+\\ ) (.*)" )
55
- (spacemacs/go-run-tests (concat " -check.f='" (match-string-no-properties 1 ) " '" )))
54
+ (re-search-backward " ^func[ ]+\\ (( [[:alnum:]]*?[ ]?[*]?\\ ([[:alnum:]]+\\ ))[ ]+\\ )? Test[[:alnum:]]+(.*)" )
55
+ (spacemacs/go-run-tests (concat " -check.f='" (match-string-no-properties 2 ) " '" )))
56
56
(message " Gocheck is needed to test the current suite " ))
57
57
(message " Must be in a _test.go file to run go-test-current-suite " )))
58
58
You can’t perform that action at this time.
0 commit comments