github.com/onflow/flow-go@v0.33.17/model/fingerprint/mock/fingerprinter.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // Fingerprinter is an autogenerated mock type for the Fingerprinter type
     8  type Fingerprinter struct {
     9  	mock.Mock
    10  }
    11  
    12  // Fingerprint provides a mock function with given fields:
    13  func (_m *Fingerprinter) Fingerprint() []byte {
    14  	ret := _m.Called()
    15  
    16  	var r0 []byte
    17  	if rf, ok := ret.Get(0).(func() []byte); ok {
    18  		r0 = rf()
    19  	} else {
    20  		if ret.Get(0) != nil {
    21  			r0 = ret.Get(0).([]byte)
    22  		}
    23  	}
    24  
    25  	return r0
    26  }
    27  
    28  type mockConstructorTestingTNewFingerprinter interface {
    29  	mock.TestingT
    30  	Cleanup(func())
    31  }
    32  
    33  // NewFingerprinter creates a new instance of Fingerprinter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    34  func NewFingerprinter(t mockConstructorTestingTNewFingerprinter) *Fingerprinter {
    35  	mock := &Fingerprinter{}
    36  	mock.Mock.Test(t)
    37  
    38  	t.Cleanup(func() { mock.AssertExpectations(t) })
    39  
    40  	return mock
    41  }