github.com/golang/mock@v1.6.0/mockgen/internal/tests/generated_identifier_conflict/bugreport_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: bugreport.go
     3  
     4  // Package bugreport is a generated GoMock package.
     5  package bugreport
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  )
    12  
    13  // MockExample is a mock of Example interface.
    14  type MockExample struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *MockExampleMockRecorder
    17  }
    18  
    19  // MockExampleMockRecorder is the mock recorder for MockExample.
    20  type MockExampleMockRecorder struct {
    21  	mock *MockExample
    22  }
    23  
    24  // NewMockExample creates a new mock instance.
    25  func NewMockExample(ctrl *gomock.Controller) *MockExample {
    26  	mock := &MockExample{ctrl: ctrl}
    27  	mock.recorder = &MockExampleMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use.
    32  func (m *MockExample) EXPECT() *MockExampleMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // Method mocks base method.
    37  func (m_2 *MockExample) Method(_m, _mr, m, mr int) {
    38  	m_2.ctrl.T.Helper()
    39  	m_2.ctrl.Call(m_2, "Method", _m, _mr, m, mr)
    40  }
    41  
    42  // Method indicates an expected call of Method.
    43  func (mr_2 *MockExampleMockRecorder) Method(_m, _mr, m, mr interface{}) *gomock.Call {
    44  	mr_2.mock.ctrl.T.Helper()
    45  	return mr_2.mock.ctrl.RecordCallWithMethodType(mr_2.mock, "Method", reflect.TypeOf((*MockExample)(nil).Method), _m, _mr, m, mr)
    46  }
    47  
    48  // VarargMethod mocks base method.
    49  func (m *MockExample) VarargMethod(_s, _x, a, ret int, varargs ...int) {
    50  	m.ctrl.T.Helper()
    51  	varargs_2 := []interface{}{_s, _x, a, ret}
    52  	for _, a_2 := range varargs {
    53  		varargs_2 = append(varargs_2, a_2)
    54  	}
    55  	m.ctrl.Call(m, "VarargMethod", varargs_2...)
    56  }
    57  
    58  // VarargMethod indicates an expected call of VarargMethod.
    59  func (mr *MockExampleMockRecorder) VarargMethod(_s, _x, a, ret interface{}, varargs ...interface{}) *gomock.Call {
    60  	mr.mock.ctrl.T.Helper()
    61  	varargs_2 := append([]interface{}{_s, _x, a, ret}, varargs...)
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VarargMethod", reflect.TypeOf((*MockExample)(nil).VarargMethod), varargs_2...)
    63  }