Skip to content

Commit 1d5ff71

Browse files
authored
Add Notation to Test_isPortInUsed in pkg\ddc\alluxio\utils_test.go. (#4688)
Signed-off-by: syhan32 <[email protected]>
1 parent 71ad99b commit 1d5ff71

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/ddc/alluxio/utils_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,13 @@ func TestMountRootWithoutEnvSet(t *testing.T) {
179179
}
180180
}
181181
}
182+
183+
// Test_isPortInUsed tests the functionality of the isPortInUsed function.
184+
// This function checks whether a specified port is in the list of used ports.
185+
// Test cases include:
186+
// - Checking if a port is in the list of used ports.
187+
// Each test case calls the isPortInUsed function and verifies if the returned value matches the expected result.
188+
// If the returned value does not match the expected result, the test fails and outputs an error message.
182189
func Test_isPortInUsed(t *testing.T) {
183190
type args struct {
184191
port int

0 commit comments

Comments
 (0)