@@ -183,9 +183,9 @@ func TestTransformMaster(t *testing.T) {
183183 }
184184}
185185
186- // TestTransformWorkers verifies that the transformWorkers function correctly transforms
187- // the worker configuration of AlluxioRuntime into the expected Alluxio structure.
188- // It tests different network modes, node selectors, and image pull secrets to ensure
186+ // TestTransformWorkers verifies that the transformWorkers function correctly transforms
187+ // the worker configuration of AlluxioRuntime into the expected Alluxio structure.
188+ // It tests different network modes, node selectors, and image pull secrets to ensure
189189// correct transformation behavior.
190190func TestTransformWorkers (t * testing.T ) {
191191 testCases := map [string ]struct {
@@ -588,19 +588,21 @@ func TestGetMediumTypeFromVolumeSource(t *testing.T) {
588588 }
589589}
590590
591- // TestAlluxioEngine_allocateSinglePort is a unit test function that tests
591+ // TestAlluxioEngine_allocateSinglePort is a unit test function that tests
592592// the `allocateSinglePort` method of the `AlluxioEngine` struct.
593- // The function verifies the behavior of port allocation for Alluxio master
593+ // The function verifies the behavior of port allocation for Alluxio master
594594// and worker components under different scenarios,
595- // including when properties are set, unset, or when runtime specifications
595+ // including when properties are set, unset, or when runtime specifications
596596// are provided.
597- //
597+ //
598598// Parameters:
599- // - t: A testing.T object provided by the Go testing framework, used to
599+ // - t: A testing.T object provided by the Go testing framework, used to
600+ //
600601// manage test state and support formatted test logs.
601602//
602603// Returns:
603- // - None. The function is a test function and does not return any value.
604+ // - None. The function is a test function and does not return any value.
605+ //
604606// It reports test failures using the `t.Errorf` method.
605607func TestAlluxioEngine_allocateSinglePort (t * testing.T ) {
606608 // Define the fields required for the AlluxioEngine struct.
@@ -902,10 +904,10 @@ func TestAlluxioEngine_allocatePorts(t *testing.T) {
902904//
903905// Test Cases:
904906// 1. "master properties is not null":
905- // - Ensures that when master-specific properties exist, they override the global properties.
907+ // - Ensures that when master-specific properties exist, they override the global properties.
906908//
907909// 2. "properties is not null for master":
908- // - Ensures that both master-specific and additional global properties are correctly handled.
910+ // - Ensures that both master-specific and additional global properties are correctly handled.
909911//
910912// The function iterates over multiple test cases and checks if the transformed properties
911913// match the expected values. If the transformation does not produce the expected result, the test fails.
0 commit comments