Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for ct (0.15 sec)

  1. pkg/apis/core/fuzzer/fuzzer.go

    			*p = types[c.Rand.Intn(len(types))]
    		},
    		func(ct *core.Container, c fuzz.Continue) {
    			c.FuzzNoCustom(ct)                                          // fuzz self without calling this function again
    			ct.TerminationMessagePath = "/" + ct.TerminationMessagePath // Must be non-empty
    			ct.TerminationMessagePolicy = "File"
    		},
    		func(ep *core.EphemeralContainer, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 04:32:01 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. src/math/rand/v2/rand_test.go

    	if testing.Short() && (testenv.Builder() == "" || hasSlowFloatingPoint()) {
    		num /= 100 // 1.72 seconds instead of 172 seconds
    	}
    
    	r := testRand()
    	for ct := 0; ct < num; ct++ {
    		f := r.Float32()
    		if f >= 1 {
    			t.Fatal("Float32() should be in range [0,1). ct:", ct, "f:", f)
    		}
    	}
    }
    
    func TestShuffleSmall(t *testing.T) {
    	// Check that Shuffle allows n=0 and n=1, but that swap is never called for them.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. src/math/rand/rand_test.go

    		num /= 100 // 1.72 seconds instead of 172 seconds
    	}
    
    	r := New(NewSource(1))
    	for ct := 0; ct < num; ct++ {
    		f := r.Float32()
    		if f >= 1 {
    			t.Fatal("Float32() should be in range [0,1). ct:", ct, "f:", f)
    		}
    	}
    }
    
    func testReadUniformity(t *testing.T, n int, seed int64) {
    	r := New(NewSource(seed))
    	buf := make([]byte, n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/shortcircuit.go

    				p := e.b
    				if p.Kind != BlockIf {
    					continue
    				}
    				if p.Controls[0] != a {
    					continue
    				}
    				if e.i == 0 {
    					if ct == nil {
    						ct = f.ConstBool(f.Config.Types.Bool, true)
    					}
    					v.SetArg(i, ct)
    				} else {
    					if cf == nil {
    						cf = f.ConstBool(f.Config.Types.Bool, false)
    					}
    					v.SetArg(i, cf)
    				}
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 03 17:47:02 UTC 2022
    - 12.6K bytes
    - Viewed (0)
  5. src/crypto/internal/mlkem768/mlkem768_test.go

    		s.Read(d)
    		s.Read(z)
    		ek, dk := GenerateKeyDerand(t, d, z)
    		o.Write(ek)
    		o.Write(dk.Bytes())
    
    		s.Read(msg)
    		ct, k, err := EncapsulateDerand(ek, msg)
    		if err != nil {
    			t.Fatal(err)
    		}
    		o.Write(ct)
    		o.Write(k)
    
    		kk, err := Decapsulate(dk, ct)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if !bytes.Equal(kk, k) {
    			t.Errorf("k: got %x, expected %x", kk, k)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 15:27:18 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. pilot/pkg/model/telemetry_test.go

    			emptyEnvoyLogging,
    		},
    	}
    	type args struct {
    		ct   *computedTelemetries
    		tel  Telemetry
    		spec *tpb.Telemetry
    	}
    
    	tests := []struct {
    		name string
    		args args
    		want *computedTelemetries
    	}{
    		{
    			name: "empty telemetry configuration",
    			args: args{
    				ct:   &computedTelemetries{},
    				tel:  Telemetry{},
    				spec: &tpb.Telemetry{},
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  7. src/image/gif/writer.go

    	} else {
    		ct, err := encodeColorTable(e.localColorTable[:], pm.Palette, paddedSize)
    		if err != nil {
    			if e.err == nil {
    				e.err = err
    			}
    			return
    		}
    		// This frame's palette is not the very same slice as the global
    		// palette, but it might be a copy, possibly with one value turned into
    		// transparency by DecodeAll.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:38:09 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. src/encoding/json/stream_test.go

    	}{`<html>foobar</html>`}
    
    	tests := []struct {
    		CaseName
    		v          any
    		wantEscape string
    		want       string
    	}{
    		{Name("c"), c, `"\u003c\u0026\u003e"`, `"<&>"`},
    		{Name("ct"), ct, `"\"\u003c\u0026\u003e\""`, `"\"<&>\""`},
    		{Name(`"<&>"`), "<&>", `"\u003c\u0026\u003e"`, `"<&>"`},
    		{
    			Name("tagStruct"), tagStruct,
    			`{"\u003c\u003e\u0026#! ":0,"Invalid":0}`,
    			`{"<>&#! ":0,"Invalid":0}`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 16:00:37 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  9. src/runtime/type.go

    		at := (*arraytype)(unsafe.Pointer(t))
    		av := (*arraytype)(unsafe.Pointer(v))
    		return typesEqual(at.Elem, av.Elem, seen) && at.Len == av.Len
    	case abi.Chan:
    		ct := (*chantype)(unsafe.Pointer(t))
    		cv := (*chantype)(unsafe.Pointer(v))
    		return ct.Dir == cv.Dir && typesEqual(ct.Elem, cv.Elem, seen)
    	case abi.Func:
    		ft := (*functype)(unsafe.Pointer(t))
    		fv := (*functype)(unsafe.Pointer(v))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/binutils/binutils.go

    	// paths collect paths per tool; Key "" contains the default.
    	paths := make(map[string][]string)
    	for _, t := range strings.Split(config, ",") {
    		name, path := "", t
    		if ct := strings.SplitN(t, ":", 2); len(ct) == 2 {
    			name, path = ct[0], ct[1]
    		}
    		paths[name] = append(paths[name], path)
    	}
    
    	defaultPath := paths[""]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top