Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for ct (0.03 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/compile/internal/typecheck/const.go

    // instead.
    //
    // If explicit is true, then conversions from integer to string are
    // also allowed.
    func ConvertVal(v constant.Value, t *types.Type, explicit bool) constant.Value {
    	switch ct := v.Kind(); ct {
    	case constant.Bool:
    		if t.IsBoolean() {
    			return v
    		}
    
    	case constant.String:
    		if t.IsString() {
    			return v
    		}
    
    	case constant.Int:
    		if explicit && t.IsString() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/staticinit/sched.go

    // truncating its value as needed, like a conversion of a variable.
    // If the conversion is too difficult, truncate returns nil, false.
    func truncate(c ir.Node, t *types.Type) (ir.Node, bool) {
    	ct := c.Type()
    	cv := c.Val()
    	if ct.Kind() != t.Kind() {
    		switch {
    		default:
    			// Note: float -> float/integer and complex -> complex are valid but subtle.
    			// For example a float32(float64 1e300) evaluates to +Inf at runtime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  10. src/encoding/json/encode_test.go

    	if err != nil {
    		t.Fatalf("Marshal error: %v", err)
    	}
    	if got := string(b); got != want {
    		t.Errorf("Marshal:\n\tgot:  %s\n\twant: %s", got, want)
    	}
    
    	var ct CText
    	want = `"\"\u003c\u0026\u003e\""`
    	b, err = Marshal(ct)
    	if err != nil {
    		t.Fatalf("Marshal error: %v", err)
    	}
    	if got := string(b); got != want {
    		t.Errorf("Marshal:\n\tgot:  %s\n\twant: %s", got, want)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
Back to top