Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 150 for wantRm (0.24 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/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)
  5. 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)
  6. 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)
  7. src/internal/trace/trace_test.go

    				case trace.EventLog:
    					log := ev.Log()
    					match = log.Task == wantEv.task && log.Category == wantEv.args[0] && log.Message == wantEv.args[1]
    				}
    				if match {
    					want[i] = want[len(want)-1]
    					want = want[:len(want)-1]
    					break
    				}
    			}
    		}
    		if len(want) != 0 {
    			for _, ev := range want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. pkg/config/validation/agent/validation_test.go

    			if err == nil && tt.out != "" {
    				t.Fatalf("ValidateWildcardDomain(%v) = nil, wanted %q", tt.in, tt.out)
    			} else if err != nil && tt.out == "" {
    				t.Fatalf("ValidateWildcardDomain(%v) = %v, wanted nil", tt.in, err)
    			} else if err != nil && !strings.Contains(err.Error(), tt.out) {
    				t.Fatalf("ValidateWildcardDomain(%v) = %v, wanted %q", tt.in, err, tt.out)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  9. src/runtime/ehooks_test.go

    				t.Fatalf("failed%s mode %s: wanted %q\noutput:\n%s", bt,
    					s.mode, s.expected, outs)
    			}
    			for _, need := range s.musthave {
    				if !strings.Contains(outs, need) {
    					t.Fatalf("failed mode %s: output does not contain %q\noutput:\n%s",
    						s.mode, need, outs)
    				}
    			}
    			if s.expected == "" && s.musthave == nil && outs != "" {
    				t.Errorf("failed mode %s: wanted no output\noutput:\n%s", s.mode, outs)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. src/crypto/tls/handshake_client_test.go

    			t.Fatalf("expected non-nil certificates after resumption. Got peerCertificates: %#v, verifiedCertificates: %#v", hs.PeerCertificates, hs.VerifiedChains)
    		}
    		if got, want := hs.ServerName, clientConfig.ServerName; got != want {
    			t.Errorf("%s: server name %s, want %s", test, got, want)
    		}
    	}
    
    	getTicket := func() []byte {
    		return clientConfig.ClientSessionCache.(*lruSessionCache).q.Front().Value.(*lruSessionCacheEntry).state.session.ticket
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
Back to top