Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for wantFound (0.33 sec)

  1. operator/pkg/tpath/struct_test.go

    			if GotFound != tt.wantFound {
    				t.Fatalf("GetFromStructPath(%s): gotFound:%v, wantFound:%v", tt.desc, GotFound, tt.wantFound)
    			}
    			if gotErr, wantErr := errToString(gotErr), tt.wantErr; gotErr != wantErr {
    				t.Fatalf("GetFromStructPath(%s): gotErr:%s, wantErr:%s", tt.desc, gotErr, wantErr)
    			}
    			if tt.wantErr != "" || !tt.wantFound {
    				return
    			}
    			gotYAML := util.ToYAML(GotOut)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  2. src/sort/search_test.go

    		for x := 1; x <= size*2+1; x++ {
    			var wantFound bool
    			var wantPos int
    
    			cmp := func(i int) int {
    				// Encodes the unmaterialized sequence with elem[i] == (i+1)*2
    				return x - (i+1)*2
    			}
    			pos, found := Find(size, cmp)
    
    			if x%2 == 0 {
    				wantPos = x/2 - 1
    				wantFound = true
    			} else {
    				wantPos = x / 2
    				wantFound = false
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 07 14:42:13 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  3. src/os/exec/dot_test.go

    		found, err := LookPath("execabs-test")
    		if wantErrDot {
    			wantFound := filepath.Join(".", executable)
    			if found != wantFound || !errors.Is(err, ErrDot) {
    				t.Fatalf(`LookPath(%#q) = %#q, %v, want %#q, Is ErrDot`, "execabs-test", found, err, wantFound)
    			}
    		} else {
    			wantFound := filepath.Join(dir, executable)
    			if found != wantFound || err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:19:21 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  4. src/slices/sort_test.go

    				if pos != tt.wantPos || found != tt.wantFound {
    					t.Errorf("BinarySearch got (%v, %v), want (%v, %v)", pos, found, tt.wantPos, tt.wantFound)
    				}
    			}
    
    			{
    				pos, found := BinarySearchFunc(tt.data, tt.target, strings.Compare)
    				if pos != tt.wantPos || found != tt.wantFound {
    					t.Errorf("BinarySearchFunc got (%v, %v), want (%v, %v)", pos, found, tt.wantPos, tt.wantFound)
    				}
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. test/maymorestack.go

    var count uint32
    
    //go:nosplit
    func mayMoreStack() {
    	count++
    }
    
    func main() {
    	const wantCount = 128
    
    	anotherFunc(wantCount - 1) // -1 because the call to main already counted
    
    	if count == 0 {
    		panic("mayMoreStack not called")
    	} else if count != wantCount {
    		println(count, "!=", wantCount)
    		panic("wrong number of calls to mayMoreStack")
    	}
    }
    
    //go:noinline
    func anotherFunc(n int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 05 00:52:06 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/metrics/testutil_test.go

    			if !testutil.LabelsMatch(metric, labelFilter) {
    				continue
    			}
    			counterSum += int(metric.GetHistogram().GetSampleCount())
    		}
    	}
    	if wantCount != counterSum {
    		t.Errorf("Wanted count %d, got %d for metric %s with labels %#+v", wantCount, counterSum, name, labelFilter)
    		for _, mf := range metrics {
    			if mf.GetName() == name {
    				for _, metric := range mf.GetMetric() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 24 04:26:43 UTC 2020
    - 3.4K bytes
    - Viewed (0)
Back to top