github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/forest/mock/vertex.go (about)

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