testing-with-gomock icon indicating copy to clipboard operation
testing-with-gomock copied to clipboard

Supporting materials for the blog post "Testing with GoMock"

Results 2 testing-with-gomock issues
Sort by recently updated
recently updated
newest added

Hi, where would you define the function for DoSomething? I tried adding it to doer.go and ran user_test.go with the stub commented out to see the test call the live...

Greetings, Following tutorial on: https://blog.codecentric.de/en/2017/08/gomock-tutorial/#basic-usage When using: `mockgen -destination=mocks/mock_doer.go -package=mocks github.com/sgreben/testing-with-gomock/doer Doer` I receive: `prog.go:14:2: cannot find package "github.com/sgreben/testing-with-gomock/doer" in any of: /usr/local/go/src/github.com/sgreben/testing-with-gomock/doer (from $GOROOT) /Users/millerbath/go/src/github.com/sgreben/testing-with-gomock/doer (from $GOPATH) prog.go:14:2: cannot...