Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 11 of 11 for deepEqual (0.2 sec)

  1. cmd/net_test.go

    			sortedIPList: []string{"10.0.0.1", "192.168.0.1", "127.0.0.1"},
    		},
    	}
    	for i, testCase := range testCases {
    		gotIPList := sortIPs(testCase.ipList)
    		if !reflect.DeepEqual(testCase.sortedIPList, gotIPList) {
    			t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.sortedIPList, gotIPList)
    		}
    	}
    }
    
    func TestMustGetLocalIP4(t *testing.T) {
    	testCases := []struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 08:43:09 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top