Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGetHostIP (0.07 sec)

  1. cmd/net_test.go

    		if testCase.expectedIPList != nil && testCase.expectedIPList.Intersection(ipList).IsEmpty() {
    			t.Fatalf("host: expected = %v, got = %v", testCase.expectedIPList, ipList)
    		}
    	}
    }
    
    func TestGetHostIP(t *testing.T) {
    	testCases := []struct {
    		host           string
    		expectedIPList set.StringSet
    		expectedErr    error
    	}{
    		{"localhost", set.CreateStringSet("127.0.0.1"), nil},
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 19 08:43:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top