Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for numFail (0.29 sec)

  1. src/index/suffixarray/suffixarray_test.go

    	if i < len(x) {
    		for x[i] = 1; x[i] <= byte(max); x[i]++ {
    			testRec(t, x, i+1, max, numFail, build)
    		}
    		return
    	}
    
    	if !testSA(t, x, build) {
    		*numFail++
    		if *numFail >= 10 {
    			t.Errorf("stopping after %d failures", *numFail)
    			t.FailNow()
    		}
    	}
    }
    
    // testSA tests the suffix array build function on the input x.
    // It constructs the suffix array and then checks that it is correct.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. pkg/kubelet/apis/podresources/server_v1_test.go

    	podUID := types.UID("pod-uid")
    	containerName := "container-name"
    	numaID := int64(1)
    
    	mockCtrl := gomock.NewController(t)
    	defer mockCtrl.Finish()
    
    	devs := []*podresourcesapi.ContainerDevices{
    		{
    			ResourceName: "resource",
    			DeviceIds:    []string{"dev0", "dev1"},
    			Topology:     &podresourcesapi.TopologyInfo{Nodes: []*podresourcesapi.NUMANode{{ID: numaID}}},
    		},
    	}
    
    	cpus := []int64{12, 23, 30}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  3. src/encoding/hex/hex.go

    				d.err = InvalidByteError(d.in[len(d.in)-1])
    			} else {
    				d.err = io.ErrUnexpectedEOF
    			}
    		}
    	}
    
    	// Decode internal buffer into output buffer
    	if numAvail := len(d.in) / 2; len(p) > numAvail {
    		p = p[:numAvail]
    	}
    	numDec, err := Decode(p, d.in[:len(p)*2])
    	d.in = d.in[2*numDec:]
    	if err != nil {
    		d.in, d.err = nil, err // Decode error; discard input remainder
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:30:23 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top