gogen icon indicating copy to clipboard operation
gogen copied to clipboard

A set of go packages and command line tools to generate Go code

Results 8 gogen issues
Sort by recently updated
recently updated
newest added

+ go test -compiler gc -ldflags '-X github.com/ernesto-jimenez/gogen/version.GitSHA=2b7f4fc2250681a6196e6ad47266c2aba8836f70 -extldflags '\''-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '\''' ~/build/BUILD/gogen-2b7f4fc2250681a6196e6ad47266c2aba8836f70/_build/src/github.com/ernesto-jimenez/gogen/automock ~/build/BUILD/gogen-2b7f4fc2250681a6196e6ad47266c2aba8836f70 --- FAIL: TestWritesProperly (0.10s) generator_test.go:62: /builddir/build/BUILD/gogen-2b7f4fc2250681a6196e6ad47266c2aba8836f70/_build/src/github.com/ernesto-jimenez/gogen/automock/generator.go:13:2: could not import github.com/ernesto-jimenez/gogen/imports (/builddir/build/BUILD/gogen-2b7f4fc2250681a6196e6ad47266c2aba8836f70/_build/src/github.com/ernesto-jimenez/gogen/imports/imports_test.go:1:1: package imports_test; expected imports) generator_test.go:62:...

+ go test -compiler gc -ldflags '-X github.com/ernesto-jimenez/gogen/version.GitSHA=2b7f4fc2250681a6196e6ad47266c2aba8836f70 -extldflags '\''-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '\''' ~/build/BUILD/gogen-2b7f4fc2250681a6196e6ad47266c2aba8836f70/_build/src/github.com/ernesto-jimenez/gogen/specific ~/build/BUILD/gogen-2b7f4fc2250681a6196e6ad47266c2aba8836f70 --- FAIL: TestFindPackage (0.07s) Error Trace: package_test.go:14 Error: Not equal: []string{"ring_test.go"} (expected) != []string(nil) (actual) Diff:...

Hi Example input: ``` Go package main type Foo struct{} //go:generate goautomock -mock-name fooMock -mock-pkg main_test -o mock.auto_test.go fooInterface type fooInterface interface { Foo() Foo } func main() {} ```...

I'm trying to run tests for this project and can't generate mocks (which is a required step before actually running tests): ``` $ go version go version go1.8 linux/amd64 /go/src/github.com/ernesto-jimenez/gogen$...

Try generate mock for this interface ```go type Dummy interface { Func(s ...string) } ```

`strings.Split(os.Getenv("GOPATH"), ":")` should be `filepath.SplitList(os.Getenv("GOPATH"))` to make it OS independent.

I've noticed that *interface{} types are not properly replaced with *newType - this PR solves the issue