// Code generated by mockery v2.12.3. DO NOT EDIT.

package intel_powerstat

import (
	io "io"

	mock "github.com/stretchr/testify/mock"
)

// mockFileService is an autogenerated mock type for the mockFileService type
type mockFileService struct {
	mock.Mock
}

// getCPUInfoStats provides a mock function with given fields:
func (_m *mockFileService) getCPUInfoStats() (map[string]*cpuInfo, error) {
	ret := _m.Called()

	var r0 map[string]*cpuInfo
	if rf, ok := ret.Get(0).(func() map[string]*cpuInfo); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(map[string]*cpuInfo)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// getStringsMatchingPatternOnPath provides a mock function with given fields: path
func (_m *mockFileService) getStringsMatchingPatternOnPath(path string) ([]string, error) {
	ret := _m.Called(path)

	var r0 []string
	if rf, ok := ret.Get(0).(func(string) []string); ok {
		r0 = rf(path)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]string)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(path)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// readFile provides a mock function with given fields: path
func (_m *mockFileService) readFile(path string) ([]byte, error) {
	ret := _m.Called(path)

	var r0 []byte
	if rf, ok := ret.Get(0).(func(string) []byte); ok {
		r0 = rf(path)
	} 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(path)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// readFileAtOffsetToUint64 provides a mock function with given fields: reader, offset
func (_m *mockFileService) readFileAtOffsetToUint64(reader io.ReaderAt, offset int64) (uint64, error) {
	ret := _m.Called(reader, offset)

	var r0 uint64
	if rf, ok := ret.Get(0).(func(io.ReaderAt, int64) uint64); ok {
		r0 = rf(reader, offset)
	} else {
		r0 = ret.Get(0).(uint64)
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(io.ReaderAt, int64) error); ok {
		r1 = rf(reader, offset)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// readFileToFloat64 provides a mock function with given fields: reader
func (_m *mockFileService) readFileToFloat64(reader io.Reader) (float64, int64, error) {
	ret := _m.Called(reader)

	var r0 float64
	if rf, ok := ret.Get(0).(func(io.Reader) float64); ok {
		r0 = rf(reader)
	} else {
		r0 = ret.Get(0).(float64)
	}

	var r1 int64
	if rf, ok := ret.Get(1).(func(io.Reader) int64); ok {
		r1 = rf(reader)
	} else {
		r1 = ret.Get(1).(int64)
	}

	var r2 error
	if rf, ok := ret.Get(2).(func(io.Reader) error); ok {
		r2 = rf(reader)
	} else {
		r2 = ret.Error(2)
	}

	return r0, r1, r2
}

type newmockFileServiceT interface {
	mock.TestingT
	Cleanup(func())
}

// newmockFileService creates a new instance of mockFileService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newmockFileService(t newmockFileServiceT) *mockFileService {
	mock := &mockFileService{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
