github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/aggregator/tools/deploy/planner_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ../../tools/deploy/planner.go
     3  
     4  // Copyright (c) 2022 Uber Technologies, Inc.
     5  //
     6  // Permission is hereby granted, free of charge, to any person obtaining a copy
     7  // of this software and associated documentation files (the "Software"), to deal
     8  // in the Software without restriction, including without limitation the rights
     9  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    10  // copies of the Software, and to permit persons to whom the Software is
    11  // furnished to do so, subject to the following conditions:
    12  //
    13  // The above copyright notice and this permission notice shall be included in
    14  // all copies or substantial portions of the Software.
    15  //
    16  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    17  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    18  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    19  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    20  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    21  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22  // THE SOFTWARE.
    23  
    24  // Package deploy is a generated GoMock package.
    25  package deploy
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/golang/mock/gomock"
    31  )
    32  
    33  // Mockplanner is a mock of planner interface.
    34  type Mockplanner struct {
    35  	ctrl     *gomock.Controller
    36  	recorder *MockplannerMockRecorder
    37  }
    38  
    39  // MockplannerMockRecorder is the mock recorder for Mockplanner.
    40  type MockplannerMockRecorder struct {
    41  	mock *Mockplanner
    42  }
    43  
    44  // NewMockplanner creates a new mock instance.
    45  func NewMockplanner(ctrl *gomock.Controller) *Mockplanner {
    46  	mock := &Mockplanner{ctrl: ctrl}
    47  	mock.recorder = &MockplannerMockRecorder{mock}
    48  	return mock
    49  }
    50  
    51  // EXPECT returns an object that allows the caller to indicate expected use.
    52  func (m *Mockplanner) EXPECT() *MockplannerMockRecorder {
    53  	return m.recorder
    54  }
    55  
    56  // GenerateOneStep mocks base method.
    57  func (m *Mockplanner) GenerateOneStep(toDeploy, all instanceMetadatas) (deploymentStep, error) {
    58  	m.ctrl.T.Helper()
    59  	ret := m.ctrl.Call(m, "GenerateOneStep", toDeploy, all)
    60  	ret0, _ := ret[0].(deploymentStep)
    61  	ret1, _ := ret[1].(error)
    62  	return ret0, ret1
    63  }
    64  
    65  // GenerateOneStep indicates an expected call of GenerateOneStep.
    66  func (mr *MockplannerMockRecorder) GenerateOneStep(toDeploy, all interface{}) *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateOneStep", reflect.TypeOf((*Mockplanner)(nil).GenerateOneStep), toDeploy, all)
    69  }
    70  
    71  // GeneratePlan mocks base method.
    72  func (m *Mockplanner) GeneratePlan(toDeploy, all instanceMetadatas) (deploymentPlan, error) {
    73  	m.ctrl.T.Helper()
    74  	ret := m.ctrl.Call(m, "GeneratePlan", toDeploy, all)
    75  	ret0, _ := ret[0].(deploymentPlan)
    76  	ret1, _ := ret[1].(error)
    77  	return ret0, ret1
    78  }
    79  
    80  // GeneratePlan indicates an expected call of GeneratePlan.
    81  func (mr *MockplannerMockRecorder) GeneratePlan(toDeploy, all interface{}) *gomock.Call {
    82  	mr.mock.ctrl.T.Helper()
    83  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GeneratePlan", reflect.TypeOf((*Mockplanner)(nil).GeneratePlan), toDeploy, all)
    84  }