github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/mocknetwork/basic_resolver.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mocknetwork
     4  
     5  import (
     6  	context "context"
     7  	net "net"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // BasicResolver is an autogenerated mock type for the BasicResolver type
    13  type BasicResolver struct {
    14  	mock.Mock
    15  }
    16  
    17  // LookupIPAddr provides a mock function with given fields: _a0, _a1
    18  func (_m *BasicResolver) LookupIPAddr(_a0 context.Context, _a1 string) ([]net.IPAddr, error) {
    19  	ret := _m.Called(_a0, _a1)
    20  
    21  	var r0 []net.IPAddr
    22  	var r1 error
    23  	if rf, ok := ret.Get(0).(func(context.Context, string) ([]net.IPAddr, error)); ok {
    24  		return rf(_a0, _a1)
    25  	}
    26  	if rf, ok := ret.Get(0).(func(context.Context, string) []net.IPAddr); ok {
    27  		r0 = rf(_a0, _a1)
    28  	} else {
    29  		if ret.Get(0) != nil {
    30  			r0 = ret.Get(0).([]net.IPAddr)
    31  		}
    32  	}
    33  
    34  	if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
    35  		r1 = rf(_a0, _a1)
    36  	} else {
    37  		r1 = ret.Error(1)
    38  	}
    39  
    40  	return r0, r1
    41  }
    42  
    43  // LookupTXT provides a mock function with given fields: _a0, _a1
    44  func (_m *BasicResolver) LookupTXT(_a0 context.Context, _a1 string) ([]string, error) {
    45  	ret := _m.Called(_a0, _a1)
    46  
    47  	var r0 []string
    48  	var r1 error
    49  	if rf, ok := ret.Get(0).(func(context.Context, string) ([]string, error)); ok {
    50  		return rf(_a0, _a1)
    51  	}
    52  	if rf, ok := ret.Get(0).(func(context.Context, string) []string); ok {
    53  		r0 = rf(_a0, _a1)
    54  	} else {
    55  		if ret.Get(0) != nil {
    56  			r0 = ret.Get(0).([]string)
    57  		}
    58  	}
    59  
    60  	if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
    61  		r1 = rf(_a0, _a1)
    62  	} else {
    63  		r1 = ret.Error(1)
    64  	}
    65  
    66  	return r0, r1
    67  }
    68  
    69  type mockConstructorTestingTNewBasicResolver interface {
    70  	mock.TestingT
    71  	Cleanup(func())
    72  }
    73  
    74  // NewBasicResolver creates a new instance of BasicResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    75  func NewBasicResolver(t mockConstructorTestingTNewBasicResolver) *BasicResolver {
    76  	mock := &BasicResolver{}
    77  	mock.Mock.Test(t)
    78  
    79  	t.Cleanup(func() { mock.AssertExpectations(t) })
    80  
    81  	return mock
    82  }