File: README.md

package info (click to toggle)
golang-go.uber-mock 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,176 kB
  • sloc: sh: 37; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 594 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Mock in Test Package

Test the case where the package has the `_test` suffix.

Prior to patch:

```bash
$ go generate
$ go test
# github.com/golang/mock/mockgen/internal/tests/mock_in_test_package_test [github.com/golang/mock/mockgen/internal/tests/mock_in_test_package.test]
./mock_test.go:36:44: undefined: User
./mock_test.go:38:21: undefined: User
FAIL    github.com/golang/mock/mockgen/internal/tests/mock_in_test_package [build failed]
```

With this patch applied:

```bash
$ go generate
$ go test
ok      github.com/golang/mock/mockgen/internal/tests/mock_in_test_package  0.031s
```