Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 210 for rounds (0.16 sec)

  1. pkg/spiffe/spiffe_test.go

    				t.Fatal(err)
    			}
    			if !reflect.DeepEqual(got, *tt.expected) {
    				t.Fatalf("expected %#v, got %#v", *tt.expected, got)
    			}
    
    			roundTrip := got.String()
    			if roundTrip != tt.input {
    				t.Fatalf("round trip failed, expected %q got %q", tt.input, roundTrip)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  2. src/go/types/instantiate.go

    		tpar.iface()
    		// The type parameter bound is parameterized with the same type parameters
    		// as the instantiated type; before we can use it for bounds checking we
    		// need to instantiate it with the type arguments with which we instantiated
    		// the parameterized type.
    		bound := check.subst(pos, tpar.bound, smap, nil, ctxt)
    		var cause string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go

    				t.Fatalf("failed to unmarshal UpdateOptions: %v", err)
    			}
    			got.TypeMeta = metav1.TypeMeta{}
    			update.TypeMeta = metav1.TypeMeta{}
    			if !reflect.DeepEqual(*update, *got) {
    				t.Fatalf(`updateToCreateOptions round-trip failed:
    got:  %#+v
    want: %#+v`, got, update)
    			}
    
    		})
    	}
    }
    
    func TestPatchToUpdateOptions(t *testing.T) {
    	tests := []struct {
    		name        string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  4. src/math/rand/v2/rand.go

    	// meaning the unbiasing loop almost never runs.
    	// On 32-bit systems, here we need to implement that same logic in 32-bit math,
    	// both to preserve the exact output sequence observed on 64-bit machines
    	// and to preserve the optimization that the unbiasing loop almost never runs.
    	//
    	// We want to compute
    	// 	hi, lo := bits.Mul64(r.Uint64(), n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. src/unsafe/unsafe.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
    Package unsafe contains operations that step around the type safety of Go programs.
    
    Packages that import unsafe may be non-portable and are not protected by the
    Go 1 compatibility guidelines.
    */
    package unsafe
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:45:20 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

        auto canonicalize = [&](int64_t point, int c) {
          if (masks[c]) return stride_i > 0 ? bounds[c] : bounds[(c + 1) & 1];
    
          // Add dim as offset to negative range point.
          point = point < 0 ? dim_i + point : point;
          return Clamp(point, bounds[0], bounds[1]);
        };
    
        begin_i = canonicalize(begin_i, 0);
        end_i = canonicalize(end_i, 1);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  7. src/crypto/tls/handshake_messages_test.go

    	rand := rand.New(rand.NewSource(0))
    	for _, m := range tests {
    		for j := 0; j < 1000; j++ {
    			len := rand.Intn(1000)
    			bytes := randomBytes(len, rand)
    			// This just looks for crashes due to bounds errors etc.
    			m.unmarshal(bytes)
    		}
    	}
    }
    
    func randomBytes(n int, rand *rand.Rand) []byte {
    	r := make([]byte, n)
    	if _, err := rand.Read(r); err != nil {
    		panic("rand.Read failed: " + err.Error())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  8. pkg/kubelet/logs/container_log_manager.go

    	}
    	if err := c.runtimeService.ReopenContainerLog(ctx, id); err != nil {
    		// Rename the rotated log back, so that we can try rotating it again
    		// next round.
    		// If kubelet gets restarted at this point, we'll lose original log.
    		if renameErr := c.osInterface.Rename(rotated, log); renameErr != nil {
    			// This shouldn't happen.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modcmd/edit.go

    		base.Fatal(err)
    	}
    }
    
    // parsePathVersion parses -flag=arg expecting arg to be path@version.
    func parsePathVersion(flag, arg string) (path, version string) {
    	before, after, found := strings.Cut(arg, "@")
    	if !found {
    		base.Fatalf("go: -%s=%s: need path@version", flag, arg)
    	}
    	path, version = strings.TrimSpace(before), strings.TrimSpace(after)
    	if err := module.CheckImportPath(path); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. src/runtime/runtime1.go

    	reflectOffsLock()
    	if reflectOffs.m == nil {
    		reflectOffs.m = make(map[int32]unsafe.Pointer)
    		reflectOffs.minv = make(map[unsafe.Pointer]int32)
    		reflectOffs.next = -1
    	}
    	id, found := reflectOffs.minv[ptr]
    	if !found {
    		id = reflectOffs.next
    		reflectOffs.next-- // use negative offsets as IDs to aid debugging
    		reflectOffs.m[id] = ptr
    		reflectOffs.minv[ptr] = id
    	}
    	reflectOffsUnlock()
    	return id
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top