Debian Codegraph @

mockgen/internal/tests/mock_in_test_package/README.md

raw
1 # Mock in Test Package
2
3 Test the case where the package has the `_test` suffix.
4
5 Prior to patch:
6
7 ```bash
8 $ go generate
9 $ go test
10 # github.com/golang/mock/mockgen/internal/tests/mock_in_test_package_test [github.com/golang/mock/mockgen/internal/tests/mock_in_test_package.test]
11 ./mock_test.go:36:44: undefined: User
12 ./mock_test.go:38:21: undefined: User
13 FAIL github.com/golang/mock/mockgen/internal/tests/mock_in_test_package [build failed]
14 ```
15
16 With this patch applied:
17
18 ```bash
19 $ go generate
20 $ go test
21 ok github.com/golang/mock/mockgen/internal/tests/mock_in_test_package 0.031s
22 ```