blob: e1982a81c9e55ecf61ab7ef14f4f40a4cf1c929e [file] [log] [blame]
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
package mocks
import (
context "context"
mock "github.com/stretchr/testify/mock"
)
// Processor is an autogenerated mock type for the Processor type
type Processor struct {
mock.Mock
}
// HandlesFile provides a mock function with given fields: name
func (_m *Processor) HandlesFile(name string) bool {
ret := _m.Called(name)
if len(ret) == 0 {
panic("no return value specified for HandlesFile")
}
var r0 bool
if rf, ok := ret.Get(0).(func(string) bool); ok {
r0 = rf(name)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// Process provides a mock function with given fields: ctx, filename
func (_m *Processor) Process(ctx context.Context, filename string) error {
ret := _m.Called(ctx, filename)
if len(ret) == 0 {
panic("no return value specified for Process")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
r0 = rf(ctx, filename)
} else {
r0 = ret.Error(0)
}
return r0
}
// NewProcessor creates a new instance of Processor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewProcessor(t interface {
mock.TestingT
Cleanup(func())
}) *Processor {
mock := &Processor{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}