Skip to content

Instantly share code, notes, and snippets.

@jcdan3
Created December 12, 2021 19:57
Show Gist options
  • Select an option

  • Save jcdan3/f1770c0cd237dd3590feadf2976e4650 to your computer and use it in GitHub Desktop.

Select an option

Save jcdan3/f1770c0cd237dd3590feadf2976e4650 to your computer and use it in GitHub Desktop.
// Code generated by mockery v2.9.4. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
// FileConnector is an autogenerated mock type for the FileConnector type
type FileConnector struct {
mock.Mock
}
// ReadFromFile provides a mock function with given fields: name
func (_m *FileConnector) ReadFromFile(name string) ([]byte, error) {
ret := _m.Called(name)
var r0 []byte
if rf, ok := ret.Get(0).(func(string) []byte); ok {
r0 = rf(name)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]byte)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(name)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment