Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 976 for emptypb (0.54 sec)

  1. pkg/config/resource/instance_test.go

    // limitations under the License.
    
    package resource
    
    import (
    	"testing"
    
    	. "github.com/onsi/gomega"
    	"google.golang.org/protobuf/types/known/emptypb"
    )
    
    func TestInstance_IsEmpty_False(t *testing.T) {
    	g := NewWithT(t)
    
    	e := Instance{
    		Message: &emptypb.Empty{},
    	}
    
    	g.Expect(e.IsEmpty()).To(BeFalse())
    }
    
    func TestInstance_IsEmpty_True(t *testing.T) {
    	g := NewWithT(t)
    	e := Instance{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. pkg/config/analysis/local/helpers_test.go

    	rname := resource.NewFullName(resource.Namespace(ns), resource.LocalName(name))
    	return &resource.Instance{
    		Metadata: resource.Metadata{
    			FullName: rname,
    			Version:  resource.Version(version),
    		},
    		Message: &emptypb.Empty{},
    		Origin: &kube.Origin{
    			FullName: rname,
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. istioctl/pkg/util/configdump/wrapper.go

    	typ, err := r.Types.FindMessageByURL(url)
    	if err != nil {
    		// Here we ignore the error since we want istioctl to ignore unknown types due to the Envoy version change
    		msg := exprpb.Type{TypeKind: &exprpb.Type_Dyn{Dyn: &emptypb.Empty{}}}
    		return msg.ProtoReflect().Type(), nil
    	}
    	return typ, nil
    }
    
    // Wrapper is a wrapper around the Envoy ConfigDump
    // It has extra helper functions for handling any/struct/marshal protobuf pain
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. pkg/config/schema/resource/schema_test.go

    }
    
    func TestNewProtoInstance(t *testing.T) {
    	s := Builder{
    		Kind:         "Empty",
    		Plural:       "Empties",
    		ProtoPackage: "google.golang.org/protobuf/types/known/emptypb",
    		Proto:        "google.protobuf.Empty",
    	}.MustBuild()
    
    	p, err := s.NewInstance()
    	assert.NoError(t, err)
    	assert.Equal(t, p, config.Spec(&emptypb.Empty{}))
    }
    
    func TestMustNewProtoInstance_Panic_Nil(t *testing.T) {
    	g := NewWithT(t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. pkg/config/schema/collection/schemas_test.go

    	}{
    		{
    			name: "valid",
    			schemas: []resource.Schema{
    				resource.Builder{
    					Kind:   "Empty1",
    					Plural: "Empty1s",
    					Proto:  "google.protobuf.Empty",
    				}.MustBuild(),
    				resource.Builder{
    					Kind:   "Empty2",
    					Plural: "Empty2s",
    					Proto:  "google.protobuf.Empty",
    				}.MustBuild(),
    			},
    			expectError: false,
    		},
    	}
    
    	for _, c := range cases {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/compare/comparator.go

    	if err != nil {
    		// istioctl should keep going if it encounters new Envoy versions; ignore unknown types
    		return &exprpb.Type{TypeKind: &exprpb.Type_Dyn{Dyn: &emptypb.Empty{}}}, nil
    	}
    	return legacyproto.MessageV1(mt.New().Interface()), nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. test/nilptr3.go

    type BigStruct struct {
    	X int
    	Y float64
    	A [1 << 20]int
    	Z string
    }
    
    type Empty struct {
    }
    
    type Empty1 struct {
    	Empty
    }
    
    var (
    	intp       *int
    	arrayp     *[10]int
    	array0p    *[0]int
    	bigarrayp  *[1 << 26]int
    	structp    *Struct
    	bigstructp *BigStruct
    	emptyp     *Empty
    	empty1p    *Empty1
    )
    
    func f1() {
    	_ = *intp // ERROR "generated nil check"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. src/regexp/syntax/prog.go

    }
    
    // StartCond returns the leading empty-width conditions that must
    // be true in any match. It returns ^EmptyOp(0) if no matches are possible.
    func (p *Prog) StartCond() EmptyOp {
    	var flag EmptyOp
    	pc := uint32(p.Start)
    	i := &p.Inst[pc]
    Loop:
    	for {
    		switch i.Op {
    		case InstEmptyWidth:
    			flag |= EmptyOp(i.Arg)
    		case InstFail:
    			return ^EmptyOp(0)
    		case InstCapture, InstNop:
    			// skip
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/testing/testfieldmanager.go

    	apiVersion   string
    	emptyObj     runtime.Object
    	liveObj      runtime.Object
    }
    
    // APIVersion of the object that we're tracking.
    func (f *TestFieldManagerImpl) APIVersion() string {
    	return f.apiVersion
    }
    
    // Reset resets the state of the liveObject by resetting it to an empty object.
    func (f *TestFieldManagerImpl) Reset() {
    	f.liveObj = f.emptyObj.DeepCopyObject()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 16 20:03:48 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  10. src/cmd/internal/test2json/testdata/empty.json

    Russ Cox <******@****.***> 1667840325 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 19 bytes
    - Viewed (0)
Back to top