Skip to content

Commit 7c12b66

Browse files
committed
Add comments to TestSyncMetadataInternal in pkg/ddc/efc/metadata_test.go.
Signed-off-by: ZzzRemake <remake114514@outlook.com>
1 parent d3801d5 commit 7c12b66

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/ddc/efc/metadata_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ import (
2828
"k8s.io/apimachinery/pkg/runtime"
2929
)
3030

31+
32+
// TestSyncMetadataInternal tests the syncMetadataInternal method of EFCEngine.
33+
// It verifies the method's behavior under different scenarios:
34+
// 1. When TotalStorageBytes returns an error
35+
// 2. When TotalFileNums returns an error
36+
// 3. When both TotalStorageBytes and TotalFileNums succeed
3137
func TestSyncMetadataInternal(t *testing.T) {
3238
mockTotalStorageBytesCommon := func(e *EFCEngine) (int64, error) {
3339
return 0, nil

0 commit comments

Comments
 (0)