Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestParsePort (1.11 sec)

  1. src/net/port_test.go

    	{"9pfs", 0, true},
    	{"123badport", 0, true},
    	{"bad123port", 0, true},
    	{"badport123", 0, true},
    	{"123456789badport", 0, true},
    	{"-2147483649badport", 0, true},
    	{"2147483649badport", 0, true},
    }
    
    func TestParsePort(t *testing.T) {
    	// The following test cases are cribbed from the strconv
    	for _, tt := range parsePortTests {
    		if port, needsLookup := parsePort(tt.service); port != tt.port || needsLookup != tt.needsLookup {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 15 23:11:47 UTC 2016
    - 1.3K bytes
    - Viewed (0)
Back to top