github.com/koko1123/flow-go-1@v0.29.6/fvm/environment/mock/unsafe_random_generator.go (about)

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