From 7c12b6687c383a794ade8a6daed1b3523fa85bff Mon Sep 17 00:00:00 2001 From: ZzzRemake Date: Fri, 10 Apr 2026 19:13:43 +0800 Subject: [PATCH] Add comments to TestSyncMetadataInternal in pkg/ddc/efc/metadata_test.go. Signed-off-by: ZzzRemake --- pkg/ddc/efc/metadata_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/ddc/efc/metadata_test.go b/pkg/ddc/efc/metadata_test.go index 1e786088fc6..5fd44d50701 100644 --- a/pkg/ddc/efc/metadata_test.go +++ b/pkg/ddc/efc/metadata_test.go @@ -28,6 +28,12 @@ import ( "k8s.io/apimachinery/pkg/runtime" ) + +// TestSyncMetadataInternal tests the syncMetadataInternal method of EFCEngine. +// It verifies the method's behavior under different scenarios: +// 1. When TotalStorageBytes returns an error +// 2. When TotalFileNums returns an error +// 3. When both TotalStorageBytes and TotalFileNums succeed func TestSyncMetadataInternal(t *testing.T) { mockTotalStorageBytesCommon := func(e *EFCEngine) (int64, error) { return 0, nil