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

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