-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
422 when trying to generate tests for golang code #116
Comments
Hi @Cyndir, I've tried to replicate your error message, and I could not with the code sample you provided. Could you please provide / try the following:
|
@Cyndir can you please try renaming the function to something without "test" and let us know if it works? |
Trying again on |
If i try to generate tests for a piece of golang code, I get 422 Unprocessable Content. This occurs through both the codelens decoration and the right click menu. However, highlighting the exact same function and using the chat slash commands successfully generates tests.
func (h HTTPHandler) GetNewAccount(w http.ResponseWriter, r *http.Request, id string) { _, _ = h.service.LegacyService.GetAccount(r.Context(), id, "", true) }
This is a simple snippet that replicates this. Not sure if the implementation of the various levels of structs plays a part, but even defining them with the bare minimum to make this code valid encounters the issue.
The text was updated successfully, but these errors were encountered: