github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/api/client/charms/charmsgetter_mock_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/api/client/charms (interfaces: CharmGetter)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package charms_test -destination charmsgetter_mock_test.go github.com/juju/juju/api/client/charms CharmGetter
     7  //
     8  
     9  // Package charms_test is a generated GoMock package.
    10  package charms_test
    11  
    12  import (
    13  	context "context"
    14  	io "io"
    15  	reflect "reflect"
    16  
    17  	gomock "go.uber.org/mock/gomock"
    18  )
    19  
    20  // MockCharmGetter is a mock of CharmGetter interface.
    21  type MockCharmGetter struct {
    22  	ctrl     *gomock.Controller
    23  	recorder *MockCharmGetterMockRecorder
    24  }
    25  
    26  // MockCharmGetterMockRecorder is the mock recorder for MockCharmGetter.
    27  type MockCharmGetterMockRecorder struct {
    28  	mock *MockCharmGetter
    29  }
    30  
    31  // NewMockCharmGetter creates a new mock instance.
    32  func NewMockCharmGetter(ctrl *gomock.Controller) *MockCharmGetter {
    33  	mock := &MockCharmGetter{ctrl: ctrl}
    34  	mock.recorder = &MockCharmGetterMockRecorder{mock}
    35  	return mock
    36  }
    37  
    38  // EXPECT returns an object that allows the caller to indicate expected use.
    39  func (m *MockCharmGetter) EXPECT() *MockCharmGetterMockRecorder {
    40  	return m.recorder
    41  }
    42  
    43  // GetCharm mocks base method.
    44  func (m *MockCharmGetter) GetCharm(arg0 context.Context, arg1, arg2 string) (io.ReadCloser, error) {
    45  	m.ctrl.T.Helper()
    46  	ret := m.ctrl.Call(m, "GetCharm", arg0, arg1, arg2)
    47  	ret0, _ := ret[0].(io.ReadCloser)
    48  	ret1, _ := ret[1].(error)
    49  	return ret0, ret1
    50  }
    51  
    52  // GetCharm indicates an expected call of GetCharm.
    53  func (mr *MockCharmGetterMockRecorder) GetCharm(arg0, arg1, arg2 any) *gomock.Call {
    54  	mr.mock.ctrl.T.Helper()
    55  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCharm", reflect.TypeOf((*MockCharmGetter)(nil).GetCharm), arg0, arg1, arg2)
    56  }