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

package server

import (
	context "context"

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

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

// ReadRules provides a mock function with given fields:
func (_m *mockVmAlertExternalRules) ReadRules() (string, error) {
	ret := _m.Called()

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

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

	return r0, r1
}

// RemoveRulesFile provides a mock function with given fields:
func (_m *mockVmAlertExternalRules) RemoveRulesFile() error {
	ret := _m.Called()

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

	return r0
}

// ValidateRules provides a mock function with given fields: ctx, rules
func (_m *mockVmAlertExternalRules) ValidateRules(ctx context.Context, rules string) error {
	ret := _m.Called(ctx, rules)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
		r0 = rf(ctx, rules)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// WriteRules provides a mock function with given fields: rules
func (_m *mockVmAlertExternalRules) WriteRules(rules string) error {
	ret := _m.Called(rules)

	var r0 error
	if rf, ok := ret.Get(0).(func(string) error); ok {
		r0 = rf(rules)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}
