From 398d20d5d3b90f47d1dd838915d5794b182fdfd3 Mon Sep 17 00:00:00 2001 From: kyhsdjq <141330931+kyhsdjq@users.noreply.github.com> Date: Tue, 18 Mar 2025 00:15:24 +0800 Subject: [PATCH] Add comments to TestGetMountPoint in pkg/ddc/alluxio/utils_test.go. Signed-off-by: kyhsdjq <141330931+kyhsdjq@users.noreply.github.com> --- pkg/ddc/alluxio/utils_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkg/ddc/alluxio/utils_test.go b/pkg/ddc/alluxio/utils_test.go index 32db3ab0ca5..b8f318e8d06 100644 --- a/pkg/ddc/alluxio/utils_test.go +++ b/pkg/ddc/alluxio/utils_test.go @@ -744,6 +744,17 @@ func TestGetFuseDaemonsetName(t *testing.T) { } } +// TestGetMountPoint tests the AlluxioEngine.getMountPoint method to ensure it correctly constructs +// the mount point path. The test verifies the path concatenation logic using configured MountRoot, +// namespace, and engine name parameters to validate the resulting filesystem path. +// +// Parameters: +// - t : *testing.T +// Testing framework handle for managing test state and reporting failures +// +// Returns: +// - None +// Failures are reported through t.Errorf func TestGetMountPoint(t *testing.T) { type fields struct { name string