From d6c14ad769249a9c7cb1e6ace424dd82f2f05ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=81=E5=85=83?= <2329769811@qq.com> Date: Fri, 30 May 2025 13:14:12 +0800 Subject: [PATCH] Add comments to TestFindUnmountedUFS(t *testing.T) in pkg\ddc\alluxio\ufs_test.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 十元 <2329769811@qq.com> --- pkg/ddc/alluxio/ufs_test.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkg/ddc/alluxio/ufs_test.go b/pkg/ddc/alluxio/ufs_test.go index a2bd72c0b1a..3ff1ba12eca 100644 --- a/pkg/ddc/alluxio/ufs_test.go +++ b/pkg/ddc/alluxio/ufs_test.go @@ -808,7 +808,15 @@ func TestGenUFSMountOptionsWithDuplicatedKey(t *testing.T) { }) } } - +// TestFindUnmountedUFS verifies if AlluxioEngine's FindUnmountedUFS method correctly identifies +// UFS paths that should be considered for mounting based on their scheme. +// It iterates through predefined test cases, each with a set of mount points and the expected +// unmounted paths. For each case, it mocks the necessary dependencies, calls FindUnmountedUFS, +// and then compares the returned unmounted paths with the expected ones. +// +// param: t *testing.T - The testing context used for running the test and reporting failures. +// +// returns: None (This is a test function and does not return any value.) func TestFindUnmountedUFS(t *testing.T) { type fields struct {