github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/provider/lxd/net_mock_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: net (interfaces: Addr)
     3  
     4  // Package lxd is a generated GoMock package.
     5  package lxd
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  )
    12  
    13  // MockAddr is a mock of Addr interface
    14  type MockAddr struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *MockAddrMockRecorder
    17  }
    18  
    19  // MockAddrMockRecorder is the mock recorder for MockAddr
    20  type MockAddrMockRecorder struct {
    21  	mock *MockAddr
    22  }
    23  
    24  // NewMockAddr creates a new mock instance
    25  func NewMockAddr(ctrl *gomock.Controller) *MockAddr {
    26  	mock := &MockAddr{ctrl: ctrl}
    27  	mock.recorder = &MockAddrMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use
    32  func (m *MockAddr) EXPECT() *MockAddrMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // Network mocks base method
    37  func (m *MockAddr) Network() string {
    38  	ret := m.ctrl.Call(m, "Network")
    39  	ret0, _ := ret[0].(string)
    40  	return ret0
    41  }
    42  
    43  // Network indicates an expected call of Network
    44  func (mr *MockAddrMockRecorder) Network() *gomock.Call {
    45  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Network", reflect.TypeOf((*MockAddr)(nil).Network))
    46  }
    47  
    48  // String mocks base method
    49  func (m *MockAddr) String() string {
    50  	ret := m.ctrl.Call(m, "String")
    51  	ret0, _ := ret[0].(string)
    52  	return ret0
    53  }
    54  
    55  // String indicates an expected call of String
    56  func (mr *MockAddrMockRecorder) String() *gomock.Call {
    57  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockAddr)(nil).String))
    58  }