Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for WantOK (0.12 sec)

  1. src/net/netip/netip_test.go

    	tests := []struct {
    		ip       []byte
    		wantAddr Addr
    		wantOK   bool
    	}{
    		{
    			ip:       []byte{10, 0, 0, 1},
    			wantAddr: mustIP("10.0.0.1"),
    			wantOK:   true,
    		},
    		{
    			ip:       []byte{0xfe, 0x80, 15: 0x01},
    			wantAddr: mustIP("fe80::01"),
    			wantOK:   true,
    		},
    		{
    			ip:       []byte{0, 1, 2},
    			wantAddr: Addr{},
    			wantOK:   false,
    		},
    		{
    			ip:       nil,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/fsys/fsys_test.go

    		{"subdir5/deleted.txt", "", true},
    	}
    
    	for _, tc := range testCases {
    		gotPath, gotOK := OverlayPath(tc.path)
    		if gotPath != tc.wantPath || gotOK != tc.wantOK {
    			t.Errorf("OverlayPath(%q): got %v, %v; want %v, %v",
    				tc.path, gotPath, gotOK, tc.wantPath, tc.wantOK)
    		}
    	}
    }
    
    func TestOpen(t *testing.T) {
    	initOverlay(t, `
    {
        "Replace": {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:52:11 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  3. pkg/scheduler/schedule_one_test.go

    			if err != test.wErr {
    				gotFitErr, gotOK := err.(*framework.FitError)
    				wantFitErr, wantOK := test.wErr.(*framework.FitError)
    				if gotOK != wantOK {
    					t.Errorf("Expected err to be FitError: %v, but got %v (error: %v)", wantOK, gotOK, err)
    				} else if gotOK {
    					if diff := cmp.Diff(wantFitErr, gotFitErr); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
Back to top