github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/apiserver/facades/client/modelgeneration/mocks/package_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/apiserver/facades/client/modelgeneration (interfaces: State,Model,Generation,Application,ModelCache)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/package_mock.go github.com/juju/juju/apiserver/facades/client/modelgeneration State,Model,Generation,Application,ModelCache
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	reflect "reflect"
    14  
    15  	charm "github.com/juju/charm/v12"
    16  	modelgeneration "github.com/juju/juju/apiserver/facades/client/modelgeneration"
    17  	cache "github.com/juju/juju/core/cache"
    18  	settings "github.com/juju/juju/core/settings"
    19  	names "github.com/juju/names/v5"
    20  	gomock "go.uber.org/mock/gomock"
    21  )
    22  
    23  // MockState is a mock of State interface.
    24  type MockState struct {
    25  	ctrl     *gomock.Controller
    26  	recorder *MockStateMockRecorder
    27  }
    28  
    29  // MockStateMockRecorder is the mock recorder for MockState.
    30  type MockStateMockRecorder struct {
    31  	mock *MockState
    32  }
    33  
    34  // NewMockState creates a new mock instance.
    35  func NewMockState(ctrl *gomock.Controller) *MockState {
    36  	mock := &MockState{ctrl: ctrl}
    37  	mock.recorder = &MockStateMockRecorder{mock}
    38  	return mock
    39  }
    40  
    41  // EXPECT returns an object that allows the caller to indicate expected use.
    42  func (m *MockState) EXPECT() *MockStateMockRecorder {
    43  	return m.recorder
    44  }
    45  
    46  // Application mocks base method.
    47  func (m *MockState) Application(arg0 string) (modelgeneration.Application, error) {
    48  	m.ctrl.T.Helper()
    49  	ret := m.ctrl.Call(m, "Application", arg0)
    50  	ret0, _ := ret[0].(modelgeneration.Application)
    51  	ret1, _ := ret[1].(error)
    52  	return ret0, ret1
    53  }
    54  
    55  // Application indicates an expected call of Application.
    56  func (mr *MockStateMockRecorder) Application(arg0 any) *gomock.Call {
    57  	mr.mock.ctrl.T.Helper()
    58  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Application", reflect.TypeOf((*MockState)(nil).Application), arg0)
    59  }
    60  
    61  // ControllerTag mocks base method.
    62  func (m *MockState) ControllerTag() names.ControllerTag {
    63  	m.ctrl.T.Helper()
    64  	ret := m.ctrl.Call(m, "ControllerTag")
    65  	ret0, _ := ret[0].(names.ControllerTag)
    66  	return ret0
    67  }
    68  
    69  // ControllerTag indicates an expected call of ControllerTag.
    70  func (mr *MockStateMockRecorder) ControllerTag() *gomock.Call {
    71  	mr.mock.ctrl.T.Helper()
    72  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerTag", reflect.TypeOf((*MockState)(nil).ControllerTag))
    73  }
    74  
    75  // Model mocks base method.
    76  func (m *MockState) Model() (modelgeneration.Model, error) {
    77  	m.ctrl.T.Helper()
    78  	ret := m.ctrl.Call(m, "Model")
    79  	ret0, _ := ret[0].(modelgeneration.Model)
    80  	ret1, _ := ret[1].(error)
    81  	return ret0, ret1
    82  }
    83  
    84  // Model indicates an expected call of Model.
    85  func (mr *MockStateMockRecorder) Model() *gomock.Call {
    86  	mr.mock.ctrl.T.Helper()
    87  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Model", reflect.TypeOf((*MockState)(nil).Model))
    88  }
    89  
    90  // MockModel is a mock of Model interface.
    91  type MockModel struct {
    92  	ctrl     *gomock.Controller
    93  	recorder *MockModelMockRecorder
    94  }
    95  
    96  // MockModelMockRecorder is the mock recorder for MockModel.
    97  type MockModelMockRecorder struct {
    98  	mock *MockModel
    99  }
   100  
   101  // NewMockModel creates a new mock instance.
   102  func NewMockModel(ctrl *gomock.Controller) *MockModel {
   103  	mock := &MockModel{ctrl: ctrl}
   104  	mock.recorder = &MockModelMockRecorder{mock}
   105  	return mock
   106  }
   107  
   108  // EXPECT returns an object that allows the caller to indicate expected use.
   109  func (m *MockModel) EXPECT() *MockModelMockRecorder {
   110  	return m.recorder
   111  }
   112  
   113  // AddBranch mocks base method.
   114  func (m *MockModel) AddBranch(arg0, arg1 string) error {
   115  	m.ctrl.T.Helper()
   116  	ret := m.ctrl.Call(m, "AddBranch", arg0, arg1)
   117  	ret0, _ := ret[0].(error)
   118  	return ret0
   119  }
   120  
   121  // AddBranch indicates an expected call of AddBranch.
   122  func (mr *MockModelMockRecorder) AddBranch(arg0, arg1 any) *gomock.Call {
   123  	mr.mock.ctrl.T.Helper()
   124  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddBranch", reflect.TypeOf((*MockModel)(nil).AddBranch), arg0, arg1)
   125  }
   126  
   127  // Branch mocks base method.
   128  func (m *MockModel) Branch(arg0 string) (modelgeneration.Generation, error) {
   129  	m.ctrl.T.Helper()
   130  	ret := m.ctrl.Call(m, "Branch", arg0)
   131  	ret0, _ := ret[0].(modelgeneration.Generation)
   132  	ret1, _ := ret[1].(error)
   133  	return ret0, ret1
   134  }
   135  
   136  // Branch indicates an expected call of Branch.
   137  func (mr *MockModelMockRecorder) Branch(arg0 any) *gomock.Call {
   138  	mr.mock.ctrl.T.Helper()
   139  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Branch", reflect.TypeOf((*MockModel)(nil).Branch), arg0)
   140  }
   141  
   142  // Branches mocks base method.
   143  func (m *MockModel) Branches() ([]modelgeneration.Generation, error) {
   144  	m.ctrl.T.Helper()
   145  	ret := m.ctrl.Call(m, "Branches")
   146  	ret0, _ := ret[0].([]modelgeneration.Generation)
   147  	ret1, _ := ret[1].(error)
   148  	return ret0, ret1
   149  }
   150  
   151  // Branches indicates an expected call of Branches.
   152  func (mr *MockModelMockRecorder) Branches() *gomock.Call {
   153  	mr.mock.ctrl.T.Helper()
   154  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Branches", reflect.TypeOf((*MockModel)(nil).Branches))
   155  }
   156  
   157  // Generation mocks base method.
   158  func (m *MockModel) Generation(arg0 int) (modelgeneration.Generation, error) {
   159  	m.ctrl.T.Helper()
   160  	ret := m.ctrl.Call(m, "Generation", arg0)
   161  	ret0, _ := ret[0].(modelgeneration.Generation)
   162  	ret1, _ := ret[1].(error)
   163  	return ret0, ret1
   164  }
   165  
   166  // Generation indicates an expected call of Generation.
   167  func (mr *MockModelMockRecorder) Generation(arg0 any) *gomock.Call {
   168  	mr.mock.ctrl.T.Helper()
   169  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Generation", reflect.TypeOf((*MockModel)(nil).Generation), arg0)
   170  }
   171  
   172  // Generations mocks base method.
   173  func (m *MockModel) Generations() ([]modelgeneration.Generation, error) {
   174  	m.ctrl.T.Helper()
   175  	ret := m.ctrl.Call(m, "Generations")
   176  	ret0, _ := ret[0].([]modelgeneration.Generation)
   177  	ret1, _ := ret[1].(error)
   178  	return ret0, ret1
   179  }
   180  
   181  // Generations indicates an expected call of Generations.
   182  func (mr *MockModelMockRecorder) Generations() *gomock.Call {
   183  	mr.mock.ctrl.T.Helper()
   184  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Generations", reflect.TypeOf((*MockModel)(nil).Generations))
   185  }
   186  
   187  // ModelTag mocks base method.
   188  func (m *MockModel) ModelTag() names.ModelTag {
   189  	m.ctrl.T.Helper()
   190  	ret := m.ctrl.Call(m, "ModelTag")
   191  	ret0, _ := ret[0].(names.ModelTag)
   192  	return ret0
   193  }
   194  
   195  // ModelTag indicates an expected call of ModelTag.
   196  func (mr *MockModelMockRecorder) ModelTag() *gomock.Call {
   197  	mr.mock.ctrl.T.Helper()
   198  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModelTag", reflect.TypeOf((*MockModel)(nil).ModelTag))
   199  }
   200  
   201  // MockGeneration is a mock of Generation interface.
   202  type MockGeneration struct {
   203  	ctrl     *gomock.Controller
   204  	recorder *MockGenerationMockRecorder
   205  }
   206  
   207  // MockGenerationMockRecorder is the mock recorder for MockGeneration.
   208  type MockGenerationMockRecorder struct {
   209  	mock *MockGeneration
   210  }
   211  
   212  // NewMockGeneration creates a new mock instance.
   213  func NewMockGeneration(ctrl *gomock.Controller) *MockGeneration {
   214  	mock := &MockGeneration{ctrl: ctrl}
   215  	mock.recorder = &MockGenerationMockRecorder{mock}
   216  	return mock
   217  }
   218  
   219  // EXPECT returns an object that allows the caller to indicate expected use.
   220  func (m *MockGeneration) EXPECT() *MockGenerationMockRecorder {
   221  	return m.recorder
   222  }
   223  
   224  // Abort mocks base method.
   225  func (m *MockGeneration) Abort(arg0 string) error {
   226  	m.ctrl.T.Helper()
   227  	ret := m.ctrl.Call(m, "Abort", arg0)
   228  	ret0, _ := ret[0].(error)
   229  	return ret0
   230  }
   231  
   232  // Abort indicates an expected call of Abort.
   233  func (mr *MockGenerationMockRecorder) Abort(arg0 any) *gomock.Call {
   234  	mr.mock.ctrl.T.Helper()
   235  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Abort", reflect.TypeOf((*MockGeneration)(nil).Abort), arg0)
   236  }
   237  
   238  // AssignAllUnits mocks base method.
   239  func (m *MockGeneration) AssignAllUnits(arg0 string) error {
   240  	m.ctrl.T.Helper()
   241  	ret := m.ctrl.Call(m, "AssignAllUnits", arg0)
   242  	ret0, _ := ret[0].(error)
   243  	return ret0
   244  }
   245  
   246  // AssignAllUnits indicates an expected call of AssignAllUnits.
   247  func (mr *MockGenerationMockRecorder) AssignAllUnits(arg0 any) *gomock.Call {
   248  	mr.mock.ctrl.T.Helper()
   249  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignAllUnits", reflect.TypeOf((*MockGeneration)(nil).AssignAllUnits), arg0)
   250  }
   251  
   252  // AssignUnit mocks base method.
   253  func (m *MockGeneration) AssignUnit(arg0 string) error {
   254  	m.ctrl.T.Helper()
   255  	ret := m.ctrl.Call(m, "AssignUnit", arg0)
   256  	ret0, _ := ret[0].(error)
   257  	return ret0
   258  }
   259  
   260  // AssignUnit indicates an expected call of AssignUnit.
   261  func (mr *MockGenerationMockRecorder) AssignUnit(arg0 any) *gomock.Call {
   262  	mr.mock.ctrl.T.Helper()
   263  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignUnit", reflect.TypeOf((*MockGeneration)(nil).AssignUnit), arg0)
   264  }
   265  
   266  // AssignUnits mocks base method.
   267  func (m *MockGeneration) AssignUnits(arg0 string, arg1 int) error {
   268  	m.ctrl.T.Helper()
   269  	ret := m.ctrl.Call(m, "AssignUnits", arg0, arg1)
   270  	ret0, _ := ret[0].(error)
   271  	return ret0
   272  }
   273  
   274  // AssignUnits indicates an expected call of AssignUnits.
   275  func (mr *MockGenerationMockRecorder) AssignUnits(arg0, arg1 any) *gomock.Call {
   276  	mr.mock.ctrl.T.Helper()
   277  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignUnits", reflect.TypeOf((*MockGeneration)(nil).AssignUnits), arg0, arg1)
   278  }
   279  
   280  // AssignedUnits mocks base method.
   281  func (m *MockGeneration) AssignedUnits() map[string][]string {
   282  	m.ctrl.T.Helper()
   283  	ret := m.ctrl.Call(m, "AssignedUnits")
   284  	ret0, _ := ret[0].(map[string][]string)
   285  	return ret0
   286  }
   287  
   288  // AssignedUnits indicates an expected call of AssignedUnits.
   289  func (mr *MockGenerationMockRecorder) AssignedUnits() *gomock.Call {
   290  	mr.mock.ctrl.T.Helper()
   291  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignedUnits", reflect.TypeOf((*MockGeneration)(nil).AssignedUnits))
   292  }
   293  
   294  // BranchName mocks base method.
   295  func (m *MockGeneration) BranchName() string {
   296  	m.ctrl.T.Helper()
   297  	ret := m.ctrl.Call(m, "BranchName")
   298  	ret0, _ := ret[0].(string)
   299  	return ret0
   300  }
   301  
   302  // BranchName indicates an expected call of BranchName.
   303  func (mr *MockGenerationMockRecorder) BranchName() *gomock.Call {
   304  	mr.mock.ctrl.T.Helper()
   305  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BranchName", reflect.TypeOf((*MockGeneration)(nil).BranchName))
   306  }
   307  
   308  // Commit mocks base method.
   309  func (m *MockGeneration) Commit(arg0 string) (int, error) {
   310  	m.ctrl.T.Helper()
   311  	ret := m.ctrl.Call(m, "Commit", arg0)
   312  	ret0, _ := ret[0].(int)
   313  	ret1, _ := ret[1].(error)
   314  	return ret0, ret1
   315  }
   316  
   317  // Commit indicates an expected call of Commit.
   318  func (mr *MockGenerationMockRecorder) Commit(arg0 any) *gomock.Call {
   319  	mr.mock.ctrl.T.Helper()
   320  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockGeneration)(nil).Commit), arg0)
   321  }
   322  
   323  // Completed mocks base method.
   324  func (m *MockGeneration) Completed() int64 {
   325  	m.ctrl.T.Helper()
   326  	ret := m.ctrl.Call(m, "Completed")
   327  	ret0, _ := ret[0].(int64)
   328  	return ret0
   329  }
   330  
   331  // Completed indicates an expected call of Completed.
   332  func (mr *MockGenerationMockRecorder) Completed() *gomock.Call {
   333  	mr.mock.ctrl.T.Helper()
   334  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Completed", reflect.TypeOf((*MockGeneration)(nil).Completed))
   335  }
   336  
   337  // CompletedBy mocks base method.
   338  func (m *MockGeneration) CompletedBy() string {
   339  	m.ctrl.T.Helper()
   340  	ret := m.ctrl.Call(m, "CompletedBy")
   341  	ret0, _ := ret[0].(string)
   342  	return ret0
   343  }
   344  
   345  // CompletedBy indicates an expected call of CompletedBy.
   346  func (mr *MockGenerationMockRecorder) CompletedBy() *gomock.Call {
   347  	mr.mock.ctrl.T.Helper()
   348  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompletedBy", reflect.TypeOf((*MockGeneration)(nil).CompletedBy))
   349  }
   350  
   351  // Config mocks base method.
   352  func (m *MockGeneration) Config() map[string]settings.ItemChanges {
   353  	m.ctrl.T.Helper()
   354  	ret := m.ctrl.Call(m, "Config")
   355  	ret0, _ := ret[0].(map[string]settings.ItemChanges)
   356  	return ret0
   357  }
   358  
   359  // Config indicates an expected call of Config.
   360  func (mr *MockGenerationMockRecorder) Config() *gomock.Call {
   361  	mr.mock.ctrl.T.Helper()
   362  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Config", reflect.TypeOf((*MockGeneration)(nil).Config))
   363  }
   364  
   365  // Created mocks base method.
   366  func (m *MockGeneration) Created() int64 {
   367  	m.ctrl.T.Helper()
   368  	ret := m.ctrl.Call(m, "Created")
   369  	ret0, _ := ret[0].(int64)
   370  	return ret0
   371  }
   372  
   373  // Created indicates an expected call of Created.
   374  func (mr *MockGenerationMockRecorder) Created() *gomock.Call {
   375  	mr.mock.ctrl.T.Helper()
   376  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Created", reflect.TypeOf((*MockGeneration)(nil).Created))
   377  }
   378  
   379  // CreatedBy mocks base method.
   380  func (m *MockGeneration) CreatedBy() string {
   381  	m.ctrl.T.Helper()
   382  	ret := m.ctrl.Call(m, "CreatedBy")
   383  	ret0, _ := ret[0].(string)
   384  	return ret0
   385  }
   386  
   387  // CreatedBy indicates an expected call of CreatedBy.
   388  func (mr *MockGenerationMockRecorder) CreatedBy() *gomock.Call {
   389  	mr.mock.ctrl.T.Helper()
   390  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatedBy", reflect.TypeOf((*MockGeneration)(nil).CreatedBy))
   391  }
   392  
   393  // GenerationId mocks base method.
   394  func (m *MockGeneration) GenerationId() int {
   395  	m.ctrl.T.Helper()
   396  	ret := m.ctrl.Call(m, "GenerationId")
   397  	ret0, _ := ret[0].(int)
   398  	return ret0
   399  }
   400  
   401  // GenerationId indicates an expected call of GenerationId.
   402  func (mr *MockGenerationMockRecorder) GenerationId() *gomock.Call {
   403  	mr.mock.ctrl.T.Helper()
   404  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerationId", reflect.TypeOf((*MockGeneration)(nil).GenerationId))
   405  }
   406  
   407  // MockApplication is a mock of Application interface.
   408  type MockApplication struct {
   409  	ctrl     *gomock.Controller
   410  	recorder *MockApplicationMockRecorder
   411  }
   412  
   413  // MockApplicationMockRecorder is the mock recorder for MockApplication.
   414  type MockApplicationMockRecorder struct {
   415  	mock *MockApplication
   416  }
   417  
   418  // NewMockApplication creates a new mock instance.
   419  func NewMockApplication(ctrl *gomock.Controller) *MockApplication {
   420  	mock := &MockApplication{ctrl: ctrl}
   421  	mock.recorder = &MockApplicationMockRecorder{mock}
   422  	return mock
   423  }
   424  
   425  // EXPECT returns an object that allows the caller to indicate expected use.
   426  func (m *MockApplication) EXPECT() *MockApplicationMockRecorder {
   427  	return m.recorder
   428  }
   429  
   430  // DefaultCharmConfig mocks base method.
   431  func (m *MockApplication) DefaultCharmConfig() (charm.Settings, error) {
   432  	m.ctrl.T.Helper()
   433  	ret := m.ctrl.Call(m, "DefaultCharmConfig")
   434  	ret0, _ := ret[0].(charm.Settings)
   435  	ret1, _ := ret[1].(error)
   436  	return ret0, ret1
   437  }
   438  
   439  // DefaultCharmConfig indicates an expected call of DefaultCharmConfig.
   440  func (mr *MockApplicationMockRecorder) DefaultCharmConfig() *gomock.Call {
   441  	mr.mock.ctrl.T.Helper()
   442  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultCharmConfig", reflect.TypeOf((*MockApplication)(nil).DefaultCharmConfig))
   443  }
   444  
   445  // UnitNames mocks base method.
   446  func (m *MockApplication) UnitNames() ([]string, error) {
   447  	m.ctrl.T.Helper()
   448  	ret := m.ctrl.Call(m, "UnitNames")
   449  	ret0, _ := ret[0].([]string)
   450  	ret1, _ := ret[1].(error)
   451  	return ret0, ret1
   452  }
   453  
   454  // UnitNames indicates an expected call of UnitNames.
   455  func (mr *MockApplicationMockRecorder) UnitNames() *gomock.Call {
   456  	mr.mock.ctrl.T.Helper()
   457  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnitNames", reflect.TypeOf((*MockApplication)(nil).UnitNames))
   458  }
   459  
   460  // MockModelCache is a mock of ModelCache interface.
   461  type MockModelCache struct {
   462  	ctrl     *gomock.Controller
   463  	recorder *MockModelCacheMockRecorder
   464  }
   465  
   466  // MockModelCacheMockRecorder is the mock recorder for MockModelCache.
   467  type MockModelCacheMockRecorder struct {
   468  	mock *MockModelCache
   469  }
   470  
   471  // NewMockModelCache creates a new mock instance.
   472  func NewMockModelCache(ctrl *gomock.Controller) *MockModelCache {
   473  	mock := &MockModelCache{ctrl: ctrl}
   474  	mock.recorder = &MockModelCacheMockRecorder{mock}
   475  	return mock
   476  }
   477  
   478  // EXPECT returns an object that allows the caller to indicate expected use.
   479  func (m *MockModelCache) EXPECT() *MockModelCacheMockRecorder {
   480  	return m.recorder
   481  }
   482  
   483  // Branch mocks base method.
   484  func (m *MockModelCache) Branch(arg0 string) (cache.Branch, error) {
   485  	m.ctrl.T.Helper()
   486  	ret := m.ctrl.Call(m, "Branch", arg0)
   487  	ret0, _ := ret[0].(cache.Branch)
   488  	ret1, _ := ret[1].(error)
   489  	return ret0, ret1
   490  }
   491  
   492  // Branch indicates an expected call of Branch.
   493  func (mr *MockModelCacheMockRecorder) Branch(arg0 any) *gomock.Call {
   494  	mr.mock.ctrl.T.Helper()
   495  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Branch", reflect.TypeOf((*MockModelCache)(nil).Branch), arg0)
   496  }