github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/state/mocks/application_ports_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/state (interfaces: ApplicationPortRanges)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/application_ports_mock.go github.com/juju/juju/state ApplicationPortRanges
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	reflect "reflect"
    14  
    15  	network "github.com/juju/juju/core/network"
    16  	state "github.com/juju/juju/state"
    17  	gomock "go.uber.org/mock/gomock"
    18  )
    19  
    20  // MockApplicationPortRanges is a mock of ApplicationPortRanges interface.
    21  type MockApplicationPortRanges struct {
    22  	ctrl     *gomock.Controller
    23  	recorder *MockApplicationPortRangesMockRecorder
    24  }
    25  
    26  // MockApplicationPortRangesMockRecorder is the mock recorder for MockApplicationPortRanges.
    27  type MockApplicationPortRangesMockRecorder struct {
    28  	mock *MockApplicationPortRanges
    29  }
    30  
    31  // NewMockApplicationPortRanges creates a new mock instance.
    32  func NewMockApplicationPortRanges(ctrl *gomock.Controller) *MockApplicationPortRanges {
    33  	mock := &MockApplicationPortRanges{ctrl: ctrl}
    34  	mock.recorder = &MockApplicationPortRangesMockRecorder{mock}
    35  	return mock
    36  }
    37  
    38  // EXPECT returns an object that allows the caller to indicate expected use.
    39  func (m *MockApplicationPortRanges) EXPECT() *MockApplicationPortRangesMockRecorder {
    40  	return m.recorder
    41  }
    42  
    43  // ApplicationName mocks base method.
    44  func (m *MockApplicationPortRanges) ApplicationName() string {
    45  	m.ctrl.T.Helper()
    46  	ret := m.ctrl.Call(m, "ApplicationName")
    47  	ret0, _ := ret[0].(string)
    48  	return ret0
    49  }
    50  
    51  // ApplicationName indicates an expected call of ApplicationName.
    52  func (mr *MockApplicationPortRangesMockRecorder) ApplicationName() *gomock.Call {
    53  	mr.mock.ctrl.T.Helper()
    54  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationName", reflect.TypeOf((*MockApplicationPortRanges)(nil).ApplicationName))
    55  }
    56  
    57  // ByEndpoint mocks base method.
    58  func (m *MockApplicationPortRanges) ByEndpoint() network.GroupedPortRanges {
    59  	m.ctrl.T.Helper()
    60  	ret := m.ctrl.Call(m, "ByEndpoint")
    61  	ret0, _ := ret[0].(network.GroupedPortRanges)
    62  	return ret0
    63  }
    64  
    65  // ByEndpoint indicates an expected call of ByEndpoint.
    66  func (mr *MockApplicationPortRangesMockRecorder) ByEndpoint() *gomock.Call {
    67  	mr.mock.ctrl.T.Helper()
    68  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByEndpoint", reflect.TypeOf((*MockApplicationPortRanges)(nil).ByEndpoint))
    69  }
    70  
    71  // ByUnit mocks base method.
    72  func (m *MockApplicationPortRanges) ByUnit() map[string]state.UnitPortRanges {
    73  	m.ctrl.T.Helper()
    74  	ret := m.ctrl.Call(m, "ByUnit")
    75  	ret0, _ := ret[0].(map[string]state.UnitPortRanges)
    76  	return ret0
    77  }
    78  
    79  // ByUnit indicates an expected call of ByUnit.
    80  func (mr *MockApplicationPortRangesMockRecorder) ByUnit() *gomock.Call {
    81  	mr.mock.ctrl.T.Helper()
    82  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ByUnit", reflect.TypeOf((*MockApplicationPortRanges)(nil).ByUnit))
    83  }
    84  
    85  // Changes mocks base method.
    86  func (m *MockApplicationPortRanges) Changes() state.ModelOperation {
    87  	m.ctrl.T.Helper()
    88  	ret := m.ctrl.Call(m, "Changes")
    89  	ret0, _ := ret[0].(state.ModelOperation)
    90  	return ret0
    91  }
    92  
    93  // Changes indicates an expected call of Changes.
    94  func (mr *MockApplicationPortRangesMockRecorder) Changes() *gomock.Call {
    95  	mr.mock.ctrl.T.Helper()
    96  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Changes", reflect.TypeOf((*MockApplicationPortRanges)(nil).Changes))
    97  }
    98  
    99  // ForUnit mocks base method.
   100  func (m *MockApplicationPortRanges) ForUnit(arg0 string) state.UnitPortRanges {
   101  	m.ctrl.T.Helper()
   102  	ret := m.ctrl.Call(m, "ForUnit", arg0)
   103  	ret0, _ := ret[0].(state.UnitPortRanges)
   104  	return ret0
   105  }
   106  
   107  // ForUnit indicates an expected call of ForUnit.
   108  func (mr *MockApplicationPortRangesMockRecorder) ForUnit(arg0 any) *gomock.Call {
   109  	mr.mock.ctrl.T.Helper()
   110  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForUnit", reflect.TypeOf((*MockApplicationPortRanges)(nil).ForUnit), arg0)
   111  }
   112  
   113  // UniquePortRanges mocks base method.
   114  func (m *MockApplicationPortRanges) UniquePortRanges() []network.PortRange {
   115  	m.ctrl.T.Helper()
   116  	ret := m.ctrl.Call(m, "UniquePortRanges")
   117  	ret0, _ := ret[0].([]network.PortRange)
   118  	return ret0
   119  }
   120  
   121  // UniquePortRanges indicates an expected call of UniquePortRanges.
   122  func (mr *MockApplicationPortRangesMockRecorder) UniquePortRanges() *gomock.Call {
   123  	mr.mock.ctrl.T.Helper()
   124  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UniquePortRanges", reflect.TypeOf((*MockApplicationPortRanges)(nil).UniquePortRanges))
   125  }