Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 357 for Cmp (0.33 sec)

  1. pilot/pkg/security/model/authentication_test.go

    	auth "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3"
    	matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3"
    	"github.com/google/go-cmp/cmp"
    	"google.golang.org/protobuf/testing/protocmp"
    	"google.golang.org/protobuf/types/known/durationpb"
    
    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pilot/pkg/model/credentials"
    	"istio.io/istio/pkg/security"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 20 22:39:21 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  2. src/cmd/trace/regions.go

    		for _, stats := range summary {
    			userRegions = append(userRegions, stats)
    		}
    		slices.SortFunc(userRegions, func(a, b regionStats) int {
    			if c := cmp.Compare(a.Type, b.Type); c != 0 {
    				return c
    			}
    			return cmp.Compare(a.Frame.PC, b.Frame.PC)
    		})
    		// Emit table.
    		err := templUserRegionTypes.Execute(w, userRegions)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/util/util_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package util
    
    import (
    	"os"
    	"reflect"
    	"strings"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	kubetypes "k8s.io/apimachinery/pkg/types"
    	"k8s.io/client-go/informers"
    	csitrans "k8s.io/csi-translation-lib"
    	"k8s.io/klog/v2/ktesting"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 12 05:42:38 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  4. pkg/volume/emptydir/empty_dir.go

    		if podMemoryLimit.Cmp(zero) > 0 && podMemoryLimit.Cmp(*sizeLimit) < 1 {
    			sizeLimit = podMemoryLimit
    		}
    	}
    
    	// volume local size is  used if and only if less than what pod could consume
    	if spec.Volume.EmptyDir.SizeLimit != nil {
    		volumeSizeLimit := spec.Volume.EmptyDir.SizeLimit
    		// ensure 0 < value < size
    		if volumeSizeLimit.Cmp(zero) > 0 && volumeSizeLimit.Cmp(*sizeLimit) < 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. pkg/registry/apps/statefulset/strategy_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package statefulset
    
    import (
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/intstr"
    	genericapirequest "k8s.io/apiserver/pkg/endpoints/request"
    	utilfeature "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
    - 22.1K bytes
    - Viewed (0)
  6. src/sort/gen_sort_variants.go

    			Path:       "zsortordered.go",
    			Package:    "slices",
    			Imports:    "import \"cmp\"\n",
    			FuncSuffix: "Ordered",
    			TypeParam:  "[E cmp.Ordered]",
    			ExtraParam: "",
    			ExtraArg:   "",
    			DataType:   "[]E",
    			Funcs: template.FuncMap{
    				"Less": func(name, i, j string) string {
    					return fmt.Sprintf("cmp.Less(%s[%s], %s[%s])", name, i, name, j)
    				},
    				"Swap": func(name, i, j string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  7. pkg/registry/core/persistentvolume/strategy_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package persistentvolume
    
    import (
    	"context"
    
    	"github.com/google/go-cmp/cmp"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	apitesting "k8s.io/kubernetes/pkg/api/testing"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package volumebinding
    
    import (
    	"context"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/google/go-cmp/cmp/cmpopts"
    	"github.com/stretchr/testify/assert"
    	v1 "k8s.io/api/core/v1"
    	storagev1 "k8s.io/api/storage/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: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package validation
    
    import (
    	"fmt"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/apimachinery/pkg/util/validation/field"
    	"k8s.io/apiserver/pkg/apis/apiserver"
    )
    
    func TestStructure(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 33.7K bytes
    - Viewed (0)
  10. src/slices/slices.go

    // pair of elements.
    // The result is the first non-zero result of cmp; if cmp always
    // returns 0 the result is 0 if len(s1) == len(s2), -1 if len(s1) < len(s2),
    // and +1 if len(s1) > len(s2).
    func CompareFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, cmp func(E1, E2) int) int {
    	for i, v1 := range s1 {
    		if i >= len(s2) {
    			return +1
    		}
    		v2 := s2[i]
    		if c := cmp(v1, v2); c != 0 {
    			return c
    		}
    	}
    	if len(s1) < len(s2) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 29 14:01:59 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top