github.com/koko1123/flow-go-1@v0.29.6/module/forest/mock/vertex.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	flow "github.com/koko1123/flow-go-1/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  	if rf, ok := ret.Get(0).(func() flow.Identifier); ok {
    36  		r0 = rf()
    37  	} else {
    38  		if ret.Get(0) != nil {
    39  			r0 = ret.Get(0).(flow.Identifier)
    40  		}
    41  	}
    42  
    43  	var r1 uint64
    44  	if rf, ok := ret.Get(1).(func() uint64); ok {
    45  		r1 = rf()
    46  	} else {
    47  		r1 = ret.Get(1).(uint64)
    48  	}
    49  
    50  	return r0, r1
    51  }
    52  
    53  // VertexID provides a mock function with given fields:
    54  func (_m *Vertex) VertexID() flow.Identifier {
    55  	ret := _m.Called()
    56  
    57  	var r0 flow.Identifier
    58  	if rf, ok := ret.Get(0).(func() flow.Identifier); ok {
    59  		r0 = rf()
    60  	} else {
    61  		if ret.Get(0) != nil {
    62  			r0 = ret.Get(0).(flow.Identifier)
    63  		}
    64  	}
    65  
    66  	return r0
    67  }
    68  
    69  type mockConstructorTestingTNewVertex interface {
    70  	mock.TestingT
    71  	Cleanup(func())
    72  }
    73  
    74  // 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.
    75  func NewVertex(t mockConstructorTestingTNewVertex) *Vertex {
    76  	mock := &Vertex{}
    77  	mock.Mock.Test(t)
    78  
    79  	t.Cleanup(func() { mock.AssertExpectations(t) })
    80  
    81  	return mock
    82  }