Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSortIPs (0.06 sec)

  1. cmd/net_test.go

    			t.Fatalf("host: expected = %v, got = %v", testCase.expectedHost, host)
    		}
    
    		if testCase.expectedPort != port {
    			t.Fatalf("port: expected = %v, got = %v", testCase.expectedPort, port)
    		}
    	}
    }
    
    func TestSortIPs(t *testing.T) {
    	testCases := []struct {
    		ipList       []string
    		sortedIPList []string
    	}{
    		// Default case of two ips one with higher octet moves
    		// to the beginning of the list.
    		{
    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