@@ -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,21 +588,19 @@ 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:
599599// - t: A testing.T object provided by the Go testing framework, used to
600- //
601600// manage test state and support formatted test logs.
602601//
603602// Returns:
604603// - None. The function is a test function and does not return any value.
605- //
606604// It reports test failures using the `t.Errorf` method.
607605func TestAlluxioEngine_allocateSinglePort (t * testing.T ) {
608606 // Define the fields required for the AlluxioEngine struct.
@@ -904,10 +902,10 @@ func TestAlluxioEngine_allocatePorts(t *testing.T) {
904902//
905903// Test Cases:
906904// 1. "master properties is not null":
907- // - Ensures that when master-specific properties exist, they override the global properties.
905+ // - Ensures that when master-specific properties exist, they override the global properties.
908906//
909907// 2. "properties is not null for master":
910- // - Ensures that both master-specific and additional global properties are correctly handled.
908+ // - Ensures that both master-specific and additional global properties are correctly handled.
911909//
912910// The function iterates over multiple test cases and checks if the transformed properties
913911// match the expected values. If the transformation does not produce the expected result, the test fails.
0 commit comments