func (_m *mockSlice) Close() 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
}
Close provides a mock function with given fields:
package caching_test
import (
	"github.com/stretchr/testify/mock"
)
type mockSlice struct {
	mock.Mock
}