# languages: Fix Debug Test for Go subtests \(\#53680\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/438070b1cf192ed32a9e80ba43d6850deeaeb3cc)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 438070b1cf192ed32a9e80ba43d6850deeaeb3cc

Requested commit: 438070b1cf192ed32a9e80ba43d6850deeaeb3cc

Commit: 438070b1cf192ed32a9e80ba43d6850deeaeb3cc

Tree: 53e0260e9d5db2b4a6e233ac282fccf2be145829

Author: Kunall Banerjee

Committer: GitHub

## Message

```
languages: Fix Debug Test for Go subtests (#53680)

The `go-subtest` task template wrapped the `-run` arg in single quotes
for shell safety. This works for Run Test (terminal strips quotes), but
Debug Test sends the arg through Delve’s DAP protocol with no shell
involved, so the literal quote characters ended up in the regex and
prevented any match.

All other Go task templates (`go-test`, `go-testify-suite`,
`go-table-test-case`) use the backslash-escaped format which `GoLocator`
already knows how to handle. Align the `go-subtest` template to the same
format.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #53230.

Release Notes:

- Fixed Debug Test for Go subtests

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

- [ad6ce93202ad82bd436b3576c8bea5b0bc55c370](https://git.cafe/gitcafe/zed/commit/ad6ce93202ad82bd436b3576c8bea5b0bc55c370?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/438070b1cf192ed32a9e80ba43d6850deeaeb3cc?format=markdown)
