GNU bug report logs -
#70939
[PATCH] Add commands to run unit tests in go-ts-mode
Previous Next
Reported by: Ankit Gadiya <ankit <at> argp.in>
Date: Tue, 14 May 2024 14:06:01 UTC
Severity: wishlist
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> I've played around a little bit and noticed an issue when using go-ts-mode-test-function-at-point:
> - When there is no region selected, the test could run more than the function at point
> if any function names are the same but differ in suffixes (e.g. TestQuack and TestQuackMoo
> would both run if invoked inside just TestQuack). The same applies to when a region is
> selected. Everything within the region is run, and potentially stuff outside of it too.
> We need to make the regex strictly the functions we want to run with '^TestQuack$'.
Thanks for trying out the patch. Yes, I now see how it can capture functions
with the same prefix. I will make the regexp stricter and update the
sample_test.go as well with common prefix examples.
--
Ankit
This bug report was last modified 309 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.