We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71ad99b commit 1d5ff71Copy full SHA for 1d5ff71
pkg/ddc/alluxio/utils_test.go
@@ -179,6 +179,13 @@ func TestMountRootWithoutEnvSet(t *testing.T) {
179
}
180
181
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.
189
func Test_isPortInUsed(t *testing.T) {
190
type args struct {
191
port int
0 commit comments