- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 771 for emptypb (0.16 sec)
-
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) -
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) -
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) -
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) -
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) -
istioctl/pkg/writer/compare/comparator.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 3.7K bytes - Viewed (0) -
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) -
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) -
tools/istio-iptables/pkg/capture/testdata/empty.golden
Ben Leggett <******@****.***> 1710179183 -0400
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 11 17:46:23 UTC 2024 - 1K bytes - Viewed (0) -
src/vendor/golang.org/x/net/route/empty.s
Dmitri Shuralyov <******@****.***> 1697571594 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 255 bytes - Viewed (0)