Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 319 for Cmp (0.04 sec)

  1. pkg/api/pod/util_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package pod
    
    import (
    	"fmt"
    	"reflect"
    	"strings"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/stretchr/testify/assert"
    	"github.com/stretchr/testify/require"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  2. src/slices/example_test.go

    // Copyright 2023 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 slices_test
    
    import (
    	"cmp"
    	"fmt"
    	"slices"
    	"strconv"
    	"strings"
    )
    
    func ExampleBinarySearch() {
    	names := []string{"Alice", "Bob", "Vera"}
    	n, found := slices.BinarySearch(names, "Vera")
    	fmt.Println("Vera:", n, found)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/extension/wasmplugin_test.go

    	networkwasm "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/wasm/v3"
    	wasmextension "github.com/envoyproxy/go-control-plane/envoy/extensions/wasm/v3"
    	"github.com/google/go-cmp/cmp"
    	"google.golang.org/protobuf/testing/protocmp"
    	"google.golang.org/protobuf/types/known/anypb"
    	"google.golang.org/protobuf/types/known/durationpb"
    	"google.golang.org/protobuf/types/known/wrapperspb"
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_tidy_compat_added.txt

    cp go.mod go.mod.orig
    
    ! go mod tidy
    
    stderr '^go: example\.com/m imports\n\texample\.net/added: module example\.net/added@latest found \(v0\.3\.0, replaced by \./a1\), but does not contain package example\.net/added$'
    
    cmp go.mod go.mod.orig
    
    # Make sure that -diff behaves the same as tidy.
    [exec:patch] cp go.mod.orig go.mod
    [exec:patch] ! exists go.sum
    [exec:patch] ! go mod tidy -diff
    [exec:patch] ! stdout .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. cmd/kube-apiserver/app/options/options_test.go

    limitations under the License.
    */
    
    package options
    
    import (
    	"net"
    	"reflect"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/google/go-cmp/cmp/cmpopts"
    	"github.com/spf13/pflag"
    	noopoteltrace "go.opentelemetry.io/otel/trace/noop"
    
    	"k8s.io/apiserver/pkg/admission"
    	apiserveroptions "k8s.io/apiserver/pkg/server/options"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. src/hash/crc32/crc32_ppc64le.s

    	MOVD    table8+8(FP), R4   // *Table
    	MOVD    p+16(FP), R5
    	MOVD    p_len+24(FP), R6 // p len
    
    	CMP     $0,R6           // len == 0?
    	BNE     start
    	MOVW    R3,ret+40(FP)   // return crc
    	RET
    
    start:
    	NOR     R3,R3,R7        // ^crc
    	MOVWZ	R7,R7		// 32 bits
    	CMP	R6,$16
    	MOVD	R6,CTR
    	BLT	short
    	SRAD    $3,R6,R8        // 8 byte chunks
    	MOVD    R8,CTR
    
    loop:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 12:09:50 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. src/go/ast/commentmap.go

    // license that can be found in the LICENSE file.
    
    package ast
    
    import (
    	"bytes"
    	"cmp"
    	"fmt"
    	"go/token"
    	"slices"
    	"strings"
    )
    
    // sortComments sorts the list of comment groups in source order.
    func sortComments(list []*CommentGroup) {
    	slices.SortFunc(list, func(a, b *CommentGroup) int {
    		return cmp.Compare(a.Pos(), b.Pos())
    	})
    }
    
    // A CommentMap maps an AST node to a list of comment groups
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. src/crypto/x509/oid.go

    	)
    
    	if _, ok := first.SetString(firstNum, 10); !ok {
    		return errInvalidOID
    	}
    	if _, ok := second.SetString(secondNum, 10); !ok {
    		return errInvalidOID
    	}
    
    	if first.Cmp(big.NewInt(2)) > 0 || (first.Cmp(big.NewInt(2)) < 0 && second.Cmp(big.NewInt(40)) >= 0) {
    		return errInvalidOID
    	}
    
    	firstComponent := first.Mul(first, big.NewInt(40))
    	firstComponent.Add(firstComponent, second)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. src/runtime/asm_ppc64x.s

    	MOVD	fn+0(FP), R3	// R3 = fn
    	MOVD	R3, R11		// context
    	MOVD	g_m(g), R4	// R4 = m
    
    	MOVD	m_gsignal(R4), R5	// R5 = gsignal
    	CMP	g, R5
    	BEQ	noswitch
    
    	MOVD	m_g0(R4), R5	// R5 = g0
    	CMP	g, R5
    	BEQ	noswitch
    
    	MOVD	m_curg(R4), R6
    	CMP	g, R6
    	BEQ	switch
    
    	// Bad: g is not gsignal, not g0, not curg. What is it?
    	// Hide call from linker nosplit analysis.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 45.4K bytes
    - Viewed (0)
  10. src/crypto/ecdsa/ecdsa_legacy.go

    		return false
    	}
    	r, s := new(big.Int).SetBytes(rBytes), new(big.Int).SetBytes(sBytes)
    
    	c := pub.Curve
    	N := c.Params().N
    
    	if r.Sign() <= 0 || s.Sign() <= 0 {
    		return false
    	}
    	if r.Cmp(N) >= 0 || s.Cmp(N) >= 0 {
    		return false
    	}
    
    	// SEC 1, Version 2.0, Section 4.1.4
    	e := hashToInt(hash, c)
    	w := new(big.Int).ModInverse(s, N)
    
    	u1 := e.Mul(e, w)
    	u1.Mod(u1, N)
    	u2 := w.Mul(r, w)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top