users

package
v1.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

README

Mock in Test Package

Test the case where the package has the _test suffix.

Prior to patch:

$ 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:

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

type Finder interface {
	FindUser(name string) User
	Add(u User)
}

type User

type User struct {
	Name string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL