Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 613 for Cmp (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/lists.go

    				acc = sum
    			} else {
    				acc = nextAdder
    			}
    		}
    		return acc.(ref.Val)
    	}
    }
    
    func min() functions.UnaryOp {
    	return cmp("min", types.IntOne)
    }
    
    func max() functions.UnaryOp {
    	return cmp("max", types.IntNegOne)
    }
    
    func cmp(opName string, opPreferCmpResult ref.Val) functions.UnaryOp {
    	return func(val ref.Val) ref.Val {
    		var result traits.Comparer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  2. src/runtime/asm_arm.s

    TEXT runtime·systemstack(SB),NOSPLIT,$0-4
    	MOVW	fn+0(FP), R0	// R0 = fn
    	MOVW	g_m(g), R1	// R1 = m
    
    	MOVW	m_gsignal(R1), R2	// R2 = gsignal
    	CMP	g, R2
    	B.EQ	noswitch
    
    	MOVW	m_g0(R1), R2	// R2 = g0
    	CMP	g, R2
    	B.EQ	noswitch
    
    	MOVW	m_curg(R1), R3
    	CMP	g, R3
    	B.EQ	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: Fri Feb 23 21:00:52 UTC 2024
    - 32.1K bytes
    - Viewed (0)
  3. pkg/proxy/apis/config/v1alpha1/defaults_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1alpha1
    
    import (
    	"testing"
    	"time"
    
    	"k8s.io/utils/ptr"
    
    	"github.com/google/go-cmp/cmp"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	componentbaseconfig "k8s.io/component-base/config/v1alpha1"
    	logsapi "k8s.io/component-base/logs/api/v1"
    	kubeproxyconfigv1alpha1 "k8s.io/kube-proxy/config/v1alpha1"
    )
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:33:53 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. pilot/pkg/xds/nds_test.go

    import (
    	"reflect"
    	"testing"
    	"time"
    
    	core "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
    	discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
    	"github.com/google/go-cmp/cmp"
    	"google.golang.org/protobuf/testing/protocmp"
    
    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pilot/pkg/util/protoconv"
    	v3 "istio.io/istio/pilot/pkg/xds/v3"
    	"istio.io/istio/pilot/test/xds"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. pkg/controlplane/apiserver/options/options_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package options
    
    import (
    	"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
    - 10.7K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_server_journal_test.go

    limitations under the License.
    */
    
    package kubelet
    
    import (
    	"net/url"
    	"reflect"
    	"runtime"
    	"strings"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/google/go-cmp/cmp/cmpopts"
    	"github.com/stretchr/testify/assert"
    )
    
    func Test_getLoggingCmd(t *testing.T) {
    	tests := []struct {
    		name        string
    		args        nodeLogQuery
    		wantLinux   []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 10 22:27:44 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. pkg/apis/flowcontrol/v1/defaults_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1
    
    import (
    	"reflect"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    
    	flowcontrolv1 "k8s.io/api/flowcontrol/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/utils/ptr"
    )
    
    func TestDefaultWithPriorityLevelConfiguration(t *testing.T) {
    	tests := []struct {
    		name     string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. src/runtime/rt0_linux_ppc64le.s

    	// initialized, and R3/R4 are undefined.
    	MOVD	(R1), R12
    	CMP	R12, $0
    	BEQ	tls_and_argcv_in_reg
    
    	// Arguments are passed via the stack (musl loader or a static binary)
    	MOVD	0(R1), R3 // argc
    	ADD	$8, R1, R4 // argv
    
    	// Did the TLS pointer get set? If so, don't change it (e.g musl).
    	CMP	R13, $0
    	BNE	tls_and_argcv_in_reg
    
    	MOVD	$runtime·m0+m_tls(SB), R13 // TLS
    	ADD	$0x7000, R13
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. src/slices/sort_test.go

    	}
    }
    
    func TestBinarySearchFunc(t *testing.T) {
    	data := []int{1, 10, 11, 2} // sorted lexicographically
    	cmp := func(a int, b string) int {
    		return strings.Compare(strconv.Itoa(a), b)
    	}
    	pos, found := BinarySearchFunc(data, "2", cmp)
    	if pos != 3 || !found {
    		t.Errorf("BinarySearchFunc(%v, %q, cmp) = %v, %v, want %v, %v", data, "2", pos, found, 3, true)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. src/go/ast/import.go

    	slices.SortFunc(specs, func(a, b Spec) int {
    		ipath := importPath(a)
    		jpath := importPath(b)
    		r := cmp.Compare(ipath, jpath)
    		if r != 0 {
    			return r
    		}
    		iname := importName(a)
    		jname := importName(b)
    		r = cmp.Compare(iname, jname)
    		if r != 0 {
    			return r
    		}
    		return cmp.Compare(importComment(a), importComment(b))
    	})
    
    	// Dedup. Thanks to our sorting, we can just consider
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top