mirror of
https://github.com/vmware-tanzu/velero.git
synced 2025-12-23 06:15:21 +00:00
Fix gofmt formatting issues in test files
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
This commit is contained in:
@@ -1059,11 +1059,11 @@ func TestVolumeHelperImplWithCache_ShouldPerformFSBackup(t *testing.T) {
|
||||
// which is used by plugins that build the cache lazily per-namespace.
|
||||
func TestNewVolumeHelperImplWithCache(t *testing.T) {
|
||||
testCases := []struct {
|
||||
name string
|
||||
backup velerov1api.Backup
|
||||
resourcePolicyConfigMap *corev1api.ConfigMap
|
||||
pvcPodCache bool // whether to pass a cache
|
||||
expectError bool
|
||||
name string
|
||||
backup velerov1api.Backup
|
||||
resourcePolicyConfigMap *corev1api.ConfigMap
|
||||
pvcPodCache bool // whether to pass a cache
|
||||
expectError bool
|
||||
}{
|
||||
{
|
||||
name: "creates VolumeHelper with nil cache",
|
||||
|
||||
@@ -1302,11 +1302,11 @@ func TestIsNamespaceBuilt(t *testing.T) {
|
||||
// TestBuildCacheForNamespace tests the lazy per-namespace cache building.
|
||||
func TestBuildCacheForNamespace(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
pods []runtime.Object
|
||||
namespace string
|
||||
expectedPVCs map[string]int // pvcName -> expected pod count
|
||||
expectError bool
|
||||
name string
|
||||
pods []runtime.Object
|
||||
namespace string
|
||||
expectedPVCs map[string]int // pvcName -> expected pod count
|
||||
expectError bool
|
||||
}{
|
||||
{
|
||||
name: "build cache for namespace with pods using PVCs",
|
||||
|
||||
Reference in New Issue
Block a user