Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 364 for Cmp (0.04 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. src/image/image_test.go

    			continue
    		}
    		if !cmp(m.ColorModel(), Opaque, m.At(6, 3)) {
    			t.Errorf("%T: sub-image at (6, 3), want a non-zero color, got %v", m, m.At(6, 3))
    			continue
    		}
    		if !cmp(m.ColorModel(), Transparent, m.At(3, 3)) {
    			t.Errorf("%T: sub-image at (3, 3), want a zero color, got %v", m, m.At(3, 3))
    			continue
    		}
    		m.Set(3, 3, Opaque)
    		if !cmp(m.ColorModel(), Opaque, m.At(3, 3)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 30 02:00:49 UTC 2021
    - 10.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. test/64bit.go

    		for _, b := range int64Values {
    			var div, mod Int64
    			dodiv := false
    			var zero Int64
    			if b.Cmp(zero) != 0 {	// b != 0
    				// Can't divide by zero but also can't divide -0x8000...000 by -1.
    				var bigneg = Int64{-0x80000000, 0}
    				var minus1 = Int64{-1, ^uint32(0)}
    				if a.Cmp(bigneg) != 0 || b.Cmp(minus1) != 0 {	// a != -1<<63 || b != -1
    					div, mod = a.DivMod(b)
    					dodiv = true
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 30 19:21:08 UTC 2013
    - 24.8K bytes
    - Viewed (0)
  10. 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)
Back to top