Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 450 for Cmp (0.03 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/apidiscovery/v2/fuzzer_test.go

    	v2beta1scheme "k8s.io/apiserver/pkg/apis/apidiscovery/v2beta1"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	runtime "k8s.io/apimachinery/pkg/runtime"
    
    	"github.com/google/go-cmp/cmp"
    	fuzz "github.com/google/gofuzz"
    	"github.com/stretchr/testify/require"
    )
    
    func TestConversionRoundTrip(t *testing.T) {
    	scheme := runtime.NewScheme()
    	err := v2beta1scheme.AddToScheme(scheme)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/TreeMultiset.java

          return 0;
        }
        // The cast is safe because we call this method only if hasLowerBound().
        int cmp =
            comparator()
                .compare(uncheckedCastNullableTToT(range.getLowerEndpoint()), node.getElement());
        if (cmp < 0) {
          return aggregateBelowRange(aggr, node.left);
        } else if (cmp == 0) {
          switch (range.getLowerBoundType()) {
            case OPEN:
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 34.6K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/config/upgradeconfiguration_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package config
    
    import (
    	"os"
    	"path/filepath"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/google/go-cmp/cmp/cmpopts"
    	"github.com/lithammer/dedent"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/utils/ptr"
    	"sigs.k8s.io/yaml"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. pilot/pkg/security/authz/matcher/template_test.go

    // limitations under the License.
    
    package matcher
    
    import (
    	"testing"
    
    	uri_template "github.com/envoyproxy/go-control-plane/envoy/extensions/path/match/uri_template/v3"
    	"github.com/google/go-cmp/cmp"
    	"google.golang.org/protobuf/testing/protocmp"
    )
    
    func TestPathTemplateMatcher(t *testing.T) {
    	testCases := []struct {
    		name string
    		path string
    		want *uri_template.UriTemplateMatchConfig
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. pkg/config/model_test.go

    // limitations under the License.
    
    package config
    
    import (
    	"fmt"
    	"reflect"
    	"testing"
    	"time"
    
    	cluster "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3"
    	"github.com/google/go-cmp/cmp"
    	"google.golang.org/protobuf/testing/protocmp"
    	corev1 "k8s.io/api/core/v1"
    	k8s "sigs.k8s.io/gateway-api/apis/v1"
    
    	networking "istio.io/api/networking/v1alpha3"
    	"istio.io/istio/pkg/test/config"
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 17:37:32 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. pkg/scheduler/util/assumecache/assume_cache_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package assumecache
    
    import (
    	"fmt"
    	"slices"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/google/go-cmp/cmp/cmpopts"
    
    	"k8s.io/apimachinery/pkg/api/meta"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/client-go/tools/cache"
    	"k8s.io/kubernetes/test/utils/ktesting"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. pkg/apis/admissionregistration/v1/defaults_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1_test
    
    import (
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    
    	v1 "k8s.io/api/admissionregistration/v1"
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/kubernetes/pkg/api/legacyscheme"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go

    limitations under the License.
    */
    
    package modes_test
    
    import (
    	"fmt"
    	"math"
    	"reflect"
    	"testing"
    	"time"
    
    	"github.com/fxamacker/cbor/v2"
    	"github.com/google/go-cmp/cmp"
    )
    
    func nilPointerFor[T interface{}]() *T {
    	return nil
    }
    
    // TestRoundtrip roundtrips object serialization to interface{} and back via CBOR.
    func TestRoundtrip(t *testing.T) {
    	type modePair struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 21:48:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package validation
    
    import (
    	"fmt"
    	"strings"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/google/go-cmp/cmp/cmpopts"
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/errors"
    	"k8s.io/apimachinery/pkg/util/validation/field"
    	"k8s.io/apiserver/pkg/util/feature"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/modes_test.go

    limitations under the License.
    */
    
    package modes_test
    
    import (
    	"errors"
    	"testing"
    
    	"github.com/fxamacker/cbor/v2"
    	"github.com/google/go-cmp/cmp"
    	"k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes"
    )
    
    var encModeNames = map[cbor.EncMode]string{
    	modes.Encode:                 "Encode",
    	modes.EncodeNondeterministic: "EncodeNondeterministic",
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 18:43:10 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top