package bugreport
import "github.com/golang/mock/mockgen/internal/tests/import_embedded_interface"
Package bugreport is a generated GoMock package.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package bugreport is a generated GoMock package.
Index ¶
- func CallForeignMethod(s Source)
- func CallResponseWriterMethods(n Net)
- type MockNet
- func NewMockNet(ctrl *gomock.Controller) *MockNet
- func (m *MockNet) EXPECT() *MockNetMockRecorder
- func (m *MockNet) Header() http.Header
- func (m *MockNet) Write(arg0 []byte) (int, error)
- func (m *MockNet) WriteHeader(statusCode int)
- type MockNetMockRecorder
- func (mr *MockNetMockRecorder) Header() *gomock.Call
- func (mr *MockNetMockRecorder) Write(arg0 interface{}) *gomock.Call
- func (mr *MockNetMockRecorder) WriteHeader(statusCode interface{}) *gomock.Call
- type MockSource
- func NewMockSource(ctrl *gomock.Controller) *MockSource
- func (m *MockSource) EXPECT() *MockSourceMockRecorder
- func (m *MockSource) Error() string
- func (m *MockSource) Ersatz() ersatz.Return
- func (m *MockSource) OtherErsatz() ersatz0.Return
- type MockSourceMockRecorder
- func (mr *MockSourceMockRecorder) Error() *gomock.Call
- func (mr *MockSourceMockRecorder) Ersatz() *gomock.Call
- func (mr *MockSourceMockRecorder) OtherErsatz() *gomock.Call
- type Net
- type Source
Functions ¶
func CallForeignMethod ¶
func CallForeignMethod(s Source)
func CallResponseWriterMethods ¶
func CallResponseWriterMethods(n Net)
Types ¶
type MockNet ¶
type MockNet struct {
// contains filtered or unexported fields
}
MockNet is a mock of Net interface.
func NewMockNet ¶
func NewMockNet(ctrl *gomock.Controller) *MockNet
NewMockNet creates a new mock instance.
func (*MockNet) EXPECT ¶
func (m *MockNet) EXPECT() *MockNetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNet) Header ¶
Header mocks base method.
func (*MockNet) Write ¶
Write mocks base method.
func (*MockNet) WriteHeader ¶
WriteHeader mocks base method.
type MockNetMockRecorder ¶
type MockNetMockRecorder struct {
// contains filtered or unexported fields
}
MockNetMockRecorder is the mock recorder for MockNet.
func (*MockNetMockRecorder) Header ¶
func (mr *MockNetMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockNetMockRecorder) Write ¶
func (mr *MockNetMockRecorder) Write(arg0 interface{}) *gomock.Call
Write indicates an expected call of Write.
func (*MockNetMockRecorder) WriteHeader ¶
func (mr *MockNetMockRecorder) WriteHeader(statusCode interface{}) *gomock.Call
WriteHeader indicates an expected call of WriteHeader.
type MockSource ¶
type MockSource struct {
// contains filtered or unexported fields
}
MockSource is a mock of Source interface.
func NewMockSource ¶
func NewMockSource(ctrl *gomock.Controller) *MockSource
NewMockSource creates a new mock instance.
func (*MockSource) EXPECT ¶
func (m *MockSource) EXPECT() *MockSourceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSource) Error ¶
func (m *MockSource) Error() string
Error mocks base method.
func (*MockSource) Ersatz ¶
func (m *MockSource) Ersatz() ersatz.Return
Ersatz mocks base method.
func (*MockSource) OtherErsatz ¶
func (m *MockSource) OtherErsatz() ersatz0.Return
OtherErsatz mocks base method.
type MockSourceMockRecorder ¶
type MockSourceMockRecorder struct {
// contains filtered or unexported fields
}
MockSourceMockRecorder is the mock recorder for MockSource.
func (*MockSourceMockRecorder) Error ¶
func (mr *MockSourceMockRecorder) Error() *gomock.Call
Error indicates an expected call of Error.
func (*MockSourceMockRecorder) Ersatz ¶
func (mr *MockSourceMockRecorder) Ersatz() *gomock.Call
Ersatz indicates an expected call of Ersatz.
func (*MockSourceMockRecorder) OtherErsatz ¶
func (mr *MockSourceMockRecorder) OtherErsatz() *gomock.Call
OtherErsatz indicates an expected call of OtherErsatz.
type Net ¶
type Net interface { http.ResponseWriter }
type Source ¶
Source is an interface w/ an embedded foreign interface
Source Files ¶
bugreport.go bugreport_mock.go net.go net_mock.go
Directories ¶
- Version
- v1.5.0
- Published
- Feb 19, 2021
- Platform
- darwin/amd64
- Imports
- 7 packages
- Last checked
- 44 seconds ago –
Tools for package owners.