Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 210 for wantRm (0.2 sec)

  1. pkg/controller/job/indexed_job_utils_test.go

    			}
    			got := firstPendingIndexes(jobCtx, tc.cnt, tc.completions)
    			if diff := cmp.Diff(tc.want, got); diff != "" {
    				t.Errorf("Wrong first pending indexes (-want,+got):\n%s", diff)
    			}
    		})
    	}
    }
    
    func TestAppendDuplicatedIndexPodsForRemoval(t *testing.T) {
    	cases := map[string]struct {
    		pods        []indexPhase
    		wantRm      []indexPhase
    		wantLeft    []indexPhase
    		completions int32
    	}{
    		"all unique": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  2. src/encoding/binary/binary_test.go

    		Read(r, BigEndian, &ls.Float64)
    	}
    	b.StopTimer()
    	want := s
    	want.Int8 = 0
    	want.Int16 = 0
    	want.Int32 = 0
    	want.Int64 = 0
    	want.Uint8 = 0
    	want.Uint16 = 0
    	want.Uint32 = 0
    	want.Uint64 = 0
    	want.Complex64 = 0
    	want.Complex128 = 0
    	want.Array = [4]uint8{0, 0, 0, 0}
    	want.Bool = false
    	want.BoolArray = [4]bool{false, false, false, false}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  3. src/internal/coverage/cfile/emitdata_test.go

    				mfc++
    			} else if strings.HasPrefix(e.Name(), coverage.CounterFilePref) {
    				cdc++
    			}
    		}
    		wantmf := 1
    		wantcf := 1
    		if mfc != wantmf {
    			t.Errorf("EmitToDir: want %d meta-data files, got %d\n", wantmf, mfc)
    		}
    		if cdc != wantcf {
    			t.Errorf("EmitToDir: want %d counter-data files, got %d\n", wantcf, cdc)
    		}
    		upmergeCoverData(t, edir, "atomic")
    		upmergeCoverData(t, rdir, "atomic")
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. src/cmd/covdata/tool_test.go

    	}
    	lines = strings.Split(string(payload), "\n")
    	want0 := "mode: set"
    	if lines[0] != want0 {
    		dumplines(lines[0:10])
    		t.Errorf("textfmt: want %s got %s", want0, lines[0])
    	}
    	want1 := mainPkgPath + "/prog1.go:13.14,15.2 1 1"
    	if lines[1] != want1 {
    		dumplines(lines[0:10])
    		t.Errorf("textfmt: want %s got %s", want1, lines[1])
    	}
    }
    
    func dumplines(lines []string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  5. pilot/pkg/xds/debug_test.go

    				}
    				if (ss.ClusterSent != "") != wantSent {
    					errorHandler("wanted ClusterSent set %v got %v for %v", wantSent, ss.ClusterSent, nodeID)
    				}
    				if (ss.ClusterAcked != "") != wantAcked {
    					errorHandler("wanted ClusterAcked set %v got %v for %v", wantAcked, ss.ClusterAcked, nodeID)
    				}
    				if (ss.ListenerSent != "") != wantSent {
    					errorHandler("wanted ListenerSent set %v got %v for %v", wantSent, ss.ListenerSent, nodeID)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. src/iter/pull_test.go

    				wantNG(1)
    			}
    			wantNG(1)
    			if end < 3 {
    				stop()
    				wantNG(0)
    			}
    			for range 2 {
    				k, v, ok := next()
    				if v != 0 || ok != false {
    					t.Fatalf("next() = %d, %d, %v, want %d, %d, %v", k, v, ok, 0, 0, false)
    				}
    				wantNG(0)
    			}
    			wantNG(0)
    
    			stop()
    			stop()
    			stop()
    			wantNG(0)
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. src/runtime/sigqueue.go

    func signal_disable(s uint32) {
    	if s >= uint32(len(sig.wanted)*32) {
    		return
    	}
    	sigdisable(s)
    
    	w := sig.wanted[s/32]
    	w &^= 1 << (s & 31)
    	atomic.Store(&sig.wanted[s/32], w)
    }
    
    // Must only be called from a single goroutine at a time.
    //
    //go:linkname signal_ignore os/signal.signal_ignore
    func signal_ignore(s uint32) {
    	if s >= uint32(len(sig.wanted)*32) {
    		return
    	}
    	sigignore(s)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. internal/grid/grid.go

    func GetByteBufferCap(wantSz int) []byte {
    	if wantSz < defaultBufferSize {
    		b := GetByteBuffer()[:0]
    		if cap(b) >= wantSz {
    			return b
    		}
    		PutByteBuffer(b)
    	}
    	if wantSz <= maxBufferSize {
    		b := *internal32KByteBuffer.Get().(*[]byte)
    		if cap(b) >= wantSz {
    			return b[:0]
    		}
    		internal32KByteBuffer.Put(&b)
    	}
    	return make([]byte, 0, wantSz)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Apr 02 15:56:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprog/coro.go

    		if !ok {
    			break
    		}
    		if v != 5 {
    			return fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v)
    		}
    	}
    	return nil
    }
    
    func callerExhaustLocked(i iter.Seq[int]) error {
    	runtime.LockOSThread()
    	next, _ := iter.Pull(i)
    	for {
    		v, ok := next()
    		if !ok {
    			break
    		}
    		if v != 5 {
    			return fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v)
    		}
    	}
    	runtime.UnlockOSThread()
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. src/runtime/testdata/testprogcgo/coro.go

    			break
    		}
    		if v != 5 {
    			return fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v)
    		}
    	}
    	return nil
    }
    
    func callerExhaustCallback(i iter.Seq[int]) (err error) {
    	callFromC(func() {
    		next, _ := iter.Pull(i)
    		for {
    			v, ok := next()
    			if !ok {
    				break
    			}
    			if v != 5 {
    				err = fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v)
    			}
    		}
    	})
    	return err
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top