From 10ef43e14792a397958c110cc4b44e38264e5ca7 Mon Sep 17 00:00:00 2001 From: Shubham Pampattiwar Date: Tue, 16 Dec 2025 12:40:55 -0800 Subject: [PATCH] Fix gofmt formatting issues in test files Signed-off-by: Shubham Pampattiwar --- internal/volumehelper/volume_policy_helper_test.go | 10 +++++----- pkg/util/podvolume/pod_volume_test.go | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/internal/volumehelper/volume_policy_helper_test.go b/internal/volumehelper/volume_policy_helper_test.go index c0f93f94f..8d6073c2b 100644 --- a/internal/volumehelper/volume_policy_helper_test.go +++ b/internal/volumehelper/volume_policy_helper_test.go @@ -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", diff --git a/pkg/util/podvolume/pod_volume_test.go b/pkg/util/podvolume/pod_volume_test.go index af28ff9ef..3ba2a05e9 100644 --- a/pkg/util/podvolume/pod_volume_test.go +++ b/pkg/util/podvolume/pod_volume_test.go @@ -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",