Skip to content

cmd/fillstruct: broken without modules #31

Closed
@mschneider82

Description

@mschneider82

I dont have go modules in my project (in $GOPATH/src) and trying to fill a struct in a _test.go file, the struct is defined in the same package but not in the _test.go file.

I always get the message:

fillstruct: no struct literal found at selection

When i rollback to commit 654d0ba struct filling in the _test file is working.

client.go :
type X struct {
       Somevalue bool
}


client_test.go:
func TestClient_DoSomeTest(t *testing.T) {
   x := X{} // problem filling struct
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions