mirror of
https://github.com/luxfi/netrunner.git
synced 2026-10-30 15:24:46 +00:00
57 lines
1.2 KiB
Go
57 lines
1.2 KiB
Go
// Code generated by mockery v2.12.0. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
|
|
status "github.com/luxfi/netrunner/network/node/status"
|
|
|
|
testing "testing"
|
|
)
|
|
|
|
// NodeProcess is an autogenerated mock type for the NodeProcess type
|
|
type NodeProcess struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// Status provides a mock function with given fields:
|
|
func (_m *NodeProcess) Status() status.Status {
|
|
ret := _m.Called()
|
|
|
|
var r0 status.Status
|
|
if rf, ok := ret.Get(0).(func() status.Status); ok {
|
|
r0 = rf()
|
|
} else {
|
|
r0 = ret.Get(0).(status.Status)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// Stop provides a mock function with given fields: ctx
|
|
func (_m *NodeProcess) Stop(ctx context.Context) int {
|
|
ret := _m.Called(ctx)
|
|
|
|
var r0 int
|
|
if rf, ok := ret.Get(0).(func(context.Context) int); ok {
|
|
r0 = rf(ctx)
|
|
} else {
|
|
r0 = ret.Get(0).(int)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// NewNodeProcess creates a new instance of NodeProcess. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
|
|
func NewNodeProcess(t testing.TB) *NodeProcess {
|
|
mock := &NodeProcess{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|