// Code generated by mockery v1.0.0. DO NOT EDIT.

package management

import (
	context "context"

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

	models "github.com/percona/pmm-managed/models"
)

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

// ParseDefaultsFile provides a mock function with given fields: ctx, pmmAgentID, filePath, serviceType
func (_m *mockDefaultsFileParser) ParseDefaultsFile(ctx context.Context, pmmAgentID string, filePath string, serviceType models.ServiceType) (*models.ParseDefaultsFileResult, error) {
	ret := _m.Called(ctx, pmmAgentID, filePath, serviceType)

	var r0 *models.ParseDefaultsFileResult
	if rf, ok := ret.Get(0).(func(context.Context, string, string, models.ServiceType) *models.ParseDefaultsFileResult); ok {
		r0 = rf(ctx, pmmAgentID, filePath, serviceType)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*models.ParseDefaultsFileResult)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, string, string, models.ServiceType) error); ok {
		r1 = rf(ctx, pmmAgentID, filePath, serviceType)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}
