github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/core/base/distrosource_mock_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/core/base (interfaces: DistroSource)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package base -destination distrosource_mock_test.go github.com/juju/juju/core/base DistroSource
     7  //
     8  
     9  // Package base is a generated GoMock package.
    10  package base
    11  
    12  import (
    13  	reflect "reflect"
    14  
    15  	series "github.com/juju/os/v2/series"
    16  	gomock "go.uber.org/mock/gomock"
    17  )
    18  
    19  // MockDistroSource is a mock of DistroSource interface.
    20  type MockDistroSource struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockDistroSourceMockRecorder
    23  }
    24  
    25  // MockDistroSourceMockRecorder is the mock recorder for MockDistroSource.
    26  type MockDistroSourceMockRecorder struct {
    27  	mock *MockDistroSource
    28  }
    29  
    30  // NewMockDistroSource creates a new mock instance.
    31  func NewMockDistroSource(ctrl *gomock.Controller) *MockDistroSource {
    32  	mock := &MockDistroSource{ctrl: ctrl}
    33  	mock.recorder = &MockDistroSourceMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockDistroSource) EXPECT() *MockDistroSourceMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // Refresh mocks base method.
    43  func (m *MockDistroSource) Refresh() error {
    44  	m.ctrl.T.Helper()
    45  	ret := m.ctrl.Call(m, "Refresh")
    46  	ret0, _ := ret[0].(error)
    47  	return ret0
    48  }
    49  
    50  // Refresh indicates an expected call of Refresh.
    51  func (mr *MockDistroSourceMockRecorder) Refresh() *gomock.Call {
    52  	mr.mock.ctrl.T.Helper()
    53  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Refresh", reflect.TypeOf((*MockDistroSource)(nil).Refresh))
    54  }
    55  
    56  // SeriesInfo mocks base method.
    57  func (m *MockDistroSource) SeriesInfo(arg0 string) (series.DistroInfoSerie, bool) {
    58  	m.ctrl.T.Helper()
    59  	ret := m.ctrl.Call(m, "SeriesInfo", arg0)
    60  	ret0, _ := ret[0].(series.DistroInfoSerie)
    61  	ret1, _ := ret[1].(bool)
    62  	return ret0, ret1
    63  }
    64  
    65  // SeriesInfo indicates an expected call of SeriesInfo.
    66  func (mr *MockDistroSourceMockRecorder) SeriesInfo(arg0 any) *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SeriesInfo", reflect.TypeOf((*MockDistroSource)(nil).SeriesInfo), arg0)
    69  }