This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 645
Fix "gotests" when generates test for current function #656
Comments
clamoriniere
added a commit
to clamoriniere/vscode-go
that referenced
this issue
Nov 28, 2016
Issue: "Generate unit tests for current function" fails with recent vscode-go version. This due to the fact that the GoDocumentSymbolProvider returns now also the receiverType in the name function. example: before "DecodeJSON", after (*Volume).DecodeJSON gotests bin is not able to understand this string with the option -only since it is not a valid regular expression. Fixes: microsoft#656 check is the function name contains a ".", if yes: returns only the second part of the name that is corresponding to the function name without the receiverType.
clamoriniere
added a commit
to clamoriniere/vscode-go
that referenced
this issue
Nov 28, 2016
Issue: "Generate unit tests for current function" fails with recent vscode-go version. This due to the fact that the GoDocumentSymbolProvider returns now also the receiverType in the name function. example: before "DecodeJSON", after (*Volume).DecodeJSON gotests bin is not able to understand this string with the option -only since it is not a valid regular expression. Fixes: microsoft#656 check is the function name contains a ".", if yes: returns only the second part of the name that is corresponding to the function name without the receiverType.
clamoriniere
added a commit
to clamoriniere/vscode-go
that referenced
this issue
Nov 28, 2016
Issue: "Generate unit tests for current function" fails with recent vscode-go version. This due to the fact that the GoDocumentSymbolProvider returns now also the receiverType in the name function. example: before "DecodeJSON", after (*Volume).DecodeJSON gotests bin is not able to understand this string with the option -only since it is not a valid regular expression. Fixes: microsoft#656 check is the function name contains a ".", if yes: returns only the second part of the name that is corresponding to the function name without the receiverType.
clamoriniere
added a commit
to clamoriniere/vscode-go
that referenced
this issue
Nov 28, 2016
Issue: "Generate unit tests for current function" fails with recent vscode-go version. This due to the fact that the GoDocumentSymbolProvider returns now also the receiverType in the name function. example: before "DecodeJSON", after (*Volume).DecodeJSON gotests bin is not able to understand this string with the option -only since it is not a valid regular expression. Fixes: microsoft#656 check is the function name contains a ".", if yes: returns only the second part of the name that is corresponding to the function name without the receiverType.
clamoriniere
added a commit
to clamoriniere/vscode-go
that referenced
this issue
Nov 28, 2016
Issue: "Generate unit tests for current function" fails with recent vscode-go version. This due to the fact that the GoDocumentSymbolProvider returns now also the receiverType in the name function. example: before "DecodeJSON", after (*Volume).DecodeJSON gotests bin is not able to understand this string with the option -only since it is not a valid regular expression. Fixes: microsoft#656 check is the function name contains a ".", if yes: returns only the second part of the name that is corresponding to the function name without the receiverType.
Are you sure this worked before? |
clamoriniere
added a commit
to clamoriniere/vscode-go
that referenced
this issue
Nov 28, 2016
Issue: "Generate unit tests for current function" fails with recent vscode-go version. This due to the fact that the GoDocumentSymbolProvider returns now also the receiverType in the name function. example: before "DecodeJSON", after (*Volume).DecodeJSON gotests bin is not able to understand this string with the option -only since it is not a valid regular expression. Fixes: microsoft#656 check is the function name contains a ".", if yes: returns only the second part of the name that is corresponding to the function name without the receiverType.
clamoriniere
added a commit
to clamoriniere/vscode-go
that referenced
this issue
Nov 28, 2016
Issue: "Generate unit tests for current function" fails with recent vscode-go version. This due to the fact that the GoDocumentSymbolProvider returns now also the receiverType in the name function. example: before "DecodeJSON", after (*Volume).DecodeJSON gotests bin is not able to understand this string with the option -only since it is not a valid regular expression. Fixes: microsoft#656 check is the function name contains a ".", if yes: returns only the second part of the name that is corresponding to the function name without the receiverType.
clamoriniere
added a commit
to clamoriniere/vscode-go
that referenced
this issue
Nov 29, 2016
Issue: "Generate unit tests for current function" fails with recent vscode-go version. This due to the fact that the GoDocumentSymbolProvider returns now also the receiverType in the name function. example: before "DecodeJSON", after (*Volume).DecodeJSON gotests bin is not able to understand this string with the option -only since it is not a valid regular expression. Fixes: microsoft#656 check is the function name contains a ".", if yes: returns only the second part of the name that is corresponding to the function name without the receiverType.
clamoriniere
added a commit
to clamoriniere/vscode-go
that referenced
this issue
Nov 29, 2016
Issue: "Generate unit tests for current function" fails with recent vscode-go version. This due to the fact that the GoDocumentSymbolProvider returns now also the receiverType in the name function. example: before "DecodeJSON", after (*Volume).DecodeJSON gotests bin is not able to understand this string with the option -only since it is not a valid regular expression. Fixes: microsoft#656 check is the function name contains a ".", if yes: returns only the second part of the name that is corresponding to the function name without the receiverType.
So maybe the feature never worked properly from the beginning :( |
I also opened an Issue to link: cweill/gotests#35 |
ramya-rao-a
pushed a commit
that referenced
this issue
Nov 29, 2016
…ds (#657) Issue: "Generate unit tests for current function" fails with recent vscode-go version. This due to the fact that the GoDocumentSymbolProvider returns now also the receiverType in the name function. example: before "DecodeJSON", after (*Volume).DecodeJSON gotests bin is not able to understand this string with the option -only since it is not a valid regular expression. Fixes: #656 check is the function name contains a ".", if yes: returns only the second part of the name that is corresponding to the function name without the receiverType.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue: "Generate unit tests for current function" fails with recent vscode-go version. This due to the fact that the GoDocumentSymbolProvider returns now also the receiverType in the name function.
example:
DecodeJSON
(*Volume).DecodeJSON
gotests
bin is not able to understand this string with the option -only since it is not a valid regular expression.Fix: check is the function name contains a ".", if yes: returns only the second part of the name that is corresponding to the function name without the receiverType.
The text was updated successfully, but these errors were encountered: