Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 1,023 for Cmp (0.02 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/object_count_tracker_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package request
    
    import (
    	"reflect"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	testclock "k8s.io/utils/clock/testing"
    )
    
    func TestStorageObjectCountTracker(t *testing.T) {
    	tests := []struct {
    		name          string
    		lastUpdated   time.Duration
    		count         int64
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 17 19:36:14 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  2. 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)
  3. pkg/registry/certificates/certificates/strategy_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package certificates
    
    import (
    	"context"
    	"reflect"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apiserver/pkg/authentication/user"
    	genericapirequest "k8s.io/apiserver/pkg/endpoints/request"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storageversion/updater_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package storageversion
    
    import (
    	"reflect"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"k8s.io/api/apiserverinternal/v1alpha1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    )
    
    var (
    	v1   = "v1"
    	v2   = "v2"
    	ssv1 = v1alpha1.ServerStorageVersion{
    		APIServerID:       "1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 22:40:54 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. pkg/scheduler/internal/cache/snapshot_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package cache
    
    import (
    	"fmt"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 08:00:25 UTC 2023
    - 12K bytes
    - Viewed (0)
  6. pkg/api/testing/unstructured_test.go

    limitations under the License.
    */
    
    package testing
    
    import (
    	"bytes"
    	"fmt"
    	"math/rand"
    	"os"
    	"reflect"
    	"strconv"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	fuzz "github.com/google/gofuzz"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/apitesting/fuzzer"
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    	"k8s.io/apimachinery/pkg/api/meta"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. src/internal/coverage/cformat/format.go

    		// need, since other fields are guaranteed to be distinct).
    		if r := cmp.Compare(ui.StLine, uj.StLine); r != 0 {
    			return r
    		}
    		if r := cmp.Compare(ui.EnLine, uj.EnLine); r != 0 {
    			return r
    		}
    		if r := cmp.Compare(ui.StCol, uj.StCol); r != 0 {
    			return r
    		}
    		if r := cmp.Compare(ui.EnCol, uj.EnCol); r != 0 {
    			return r
    		}
    		return cmp.Compare(ui.NxStmts, uj.NxStmts)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/version/version_test.go

    		}
    
    		switch {
    		case cmp == -1:
    			return fmt.Errorf("unexpected ordering %q < %q", item.version, prev.version)
    		case cmp == 0 && !item.equalsPrev:
    			return fmt.Errorf("unexpected comparison %q == %q", item.version, prev.version)
    		case cmp == 1 && item.equalsPrev:
    			return fmt.Errorf("unexpected comparison %q != %q", item.version, prev.version)
    		case cmp != -rcmp:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 18 19:25:29 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  9. pkg/registry/core/persistentvolumeclaim/strategy_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package persistentvolumeclaim
    
    import (
    	"fmt"
    	"reflect"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	genericapirequest "k8s.io/apiserver/pkg/endpoints/request"
    	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
    - 11.2K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/nodeports/node_ports_test.go

    limitations under the License.
    */
    
    package nodeports
    
    import (
    	"fmt"
    	"reflect"
    	"strconv"
    	"strings"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/stretchr/testify/require"
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/klog/v2/ktesting"
    	_ "k8s.io/klog/v2/ktesting/init"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    	st "k8s.io/kubernetes/pkg/scheduler/testing"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 11:02:11 UTC 2023
    - 10.1K bytes
    - Viewed (0)
Back to top