Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 81 for Cmp (0.04 sec)

  1. pkg/registry/core/persistentvolume/storage/storage_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package storage
    
    import (
    	"context"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    	"k8s.io/apimachinery/pkg/api/resource"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/fields"
    	"k8s.io/apimachinery/pkg/labels"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/list_pgo_issue66218.txt

    # the non-pgo variant's slice when it modifies the pgo variant's Imports field to
    # add the [.ForMain] suffix.
    
    go list -f 'ImportPath: "{{.ImportPath}}", Imports: "{{.Imports}}", ImportMap: "{{.ImportMap}}"' m/a m/b
    cmp stdout want
    
    -- want --
    ImportPath: "m/a", Imports: "[m/b [m/a]]", ImportMap: "map[m/b:m/b [m/a]]"
    ImportPath: "m/b", Imports: "[m/c]", ImportMap: "map[]"
    -- go.mod --
    module m
    
    go 1.23
    
    -- a/a.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 615 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_edit.txt

    # go mod edit -json (retractions with rationales)
    go mod edit -json $WORK/go.mod.retractrationale
    cmp stdout $WORK/go.mod.retractrationale.json
    
    # go mod edit -json (deprecation)
    go mod edit -json $WORK/go.mod.deprecation
    cmp stdout $WORK/go.mod.deprecation.json
    
    # go mod edit -json (empty mod file)
    go mod edit -json $WORK/go.mod.empty
    cmp stdout $WORK/go.mod.empty.json
    
    # go mod edit -replace
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. src/cmd/trace/jsontrace.go

    		if b.Start != nil {
    			bStart = b.Start.Time()
    		}
    		if a.Start != b.Start {
    			return cmp.Compare(aStart, bStart)
    		}
    		// Break ties with the end time.
    		aEnd, bEnd := parsed.endTime(), parsed.endTime()
    		if a.End != nil {
    			aEnd = a.End.Time()
    		}
    		if b.End != nil {
    			bEnd = b.End.Time()
    		}
    		return cmp.Compare(aEnd, bEnd)
    	})
    }
    
    func defaultGenOpts() *genOpts {
    	return &genOpts{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go

    */
    
    package v1
    
    import (
    	"encoding/json"
    	"fmt"
    	"reflect"
    	"testing"
    	"time"
    
    	cbor "k8s.io/apimachinery/pkg/runtime/serializer/cbor/direct"
    	"sigs.k8s.io/yaml"
    
    	"github.com/google/go-cmp/cmp"
    	fuzz "github.com/google/gofuzz"
    )
    
    type TimeHolder struct {
    	T Time `json:"t"`
    }
    
    func TestTimeMarshalYAML(t *testing.T) {
    	cases := []struct {
    		input  Time
    		result string
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. pkg/registry/core/persistentvolumeclaim/storage/storage_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package storage
    
    import (
    	"reflect"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    	"k8s.io/apimachinery/pkg/api/resource"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/fields"
    	"k8s.io/apimachinery/pkg/labels"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. src/internal/trace/batchcursor.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package trace
    
    import (
    	"cmp"
    	"encoding/binary"
    	"fmt"
    
    	"internal/trace/event"
    	"internal/trace/event/go122"
    )
    
    type batchCursor struct {
    	m       ThreadID
    	lastTs  Time
    	idx     int       // next index into []batch
    	dataOff int       // next index into batch.data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. tests/integration/pilot/analysis/analysis_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package analysis
    
    import (
    	"context"
    	"fmt"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	"google.golang.org/protobuf/testing/protocmp"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	"istio.io/api/meta/v1alpha1"
    	"istio.io/istio/pkg/config/analysis/msg"
    	"istio.io/istio/pkg/test/framework"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/certs/certlist_test.go

    limitations under the License.
    */
    
    package certs
    
    import (
    	"crypto"
    	"crypto/tls"
    	"crypto/x509"
    	"os"
    	"path/filepath"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	certutil "k8s.io/client-go/util/cert"
    
    	kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
    	kubeadmconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. pkg/test/framework/components/namespace/kube.go

    //  limitations under the License.
    
    package namespace
    
    import (
    	"context"
    	"fmt"
    	"io"
    	"math/rand"
    	"strings"
    	"sync"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/hashicorp/go-multierror"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    
    	"istio.io/api/label"
    	"istio.io/istio/pkg/log"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top