Skip to content

Commit 7f4f1b8

Browse files
Prompts to enter name of subtest of Table Driven Tests
This change modifies Go to run subtests of table-driven tests. With the fix, a prompt will appear for the user to enter the name of the subtest they wish to run. Fixes #3962
1 parent 43281cc commit 7f4f1b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extension/src/goRunTestCodelens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class GoRunTestCodeLensProvider extends GoBaseCodeLensProvider {
109109
return codelens;
110110
}
111111

112-
const simpleRunRegex = /t.Run\("([^"]+)",/;
112+
const simpleRunRegex = /t.Run\(/;
113113

114114
for (const f of testFunctions) {
115115
const functionName = f.name;

0 commit comments

Comments
 (0)