From 48022643dd0ff1602be0867842d049c7542fb3ea Mon Sep 17 00:00:00 2001 From: JunyuWu <3286848766@qq.com> Date: Thu, 6 Mar 2025 21:04:38 +0800 Subject: [PATCH] Add notation to TestBindToDataset in pkg\ddc\jindo\dataset_test.go. Signed-off-by: JunyuWu <3286848766@qq.com> --- pkg/ddc/jindo/dataset_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/ddc/jindo/dataset_test.go b/pkg/ddc/jindo/dataset_test.go index 8cea4e5172b..0e3b673adcb 100644 --- a/pkg/ddc/jindo/dataset_test.go +++ b/pkg/ddc/jindo/dataset_test.go @@ -250,6 +250,9 @@ func TestUpdateDatasetStatus(t *testing.T) { } } +// TestBindToDataset tests the BindToDataset method of JindoEngine to verify whether it can correctly bind the dataset to the runtime +// and update the dataset's cache state and HCFS status. The test creates mock Dataset and JindoRuntime objects, +// uses a fake client to simulate operations, and finally checks if the dataset's Phase, CacheStates, and HCFSStatus match the expected results. func TestBindToDataset(t *testing.T) { testDatasetInputs := []*datav1alpha1.Dataset{ {