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

package mocks

import (
	logrus "github.com/sirupsen/logrus"
	mock "github.com/stretchr/testify/mock"
	corev1 "k8s.io/api/core/v1"

	velerov1api "github.com/heptio/velero/pkg/apis/velero/v1"
)

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

// BackupPodVolumes provides a mock function with given fields: backup, pod, log
func (_m *Backupper) BackupPodVolumes(backup *velerov1api.Backup, pod *corev1.Pod, log logrus.FieldLogger) ([]*velerov1api.PodVolumeBackup, []error) {
	ret := _m.Called(backup, pod, log)

	var r0 []*velerov1api.PodVolumeBackup
	if rf, ok := ret.Get(0).(func(*velerov1api.Backup, *corev1.Pod, logrus.FieldLogger) []*velerov1api.PodVolumeBackup); ok {
		r0 = rf(backup, pod, log)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*velerov1api.PodVolumeBackup)
		}
	}

	var r1 []error
	if rf, ok := ret.Get(1).(func(*velerov1api.Backup, *corev1.Pod, logrus.FieldLogger) []error); ok {
		r1 = rf(backup, pod, log)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).([]error)
		}
	}

	return r0, r1
}
