github.com/cilium/cilium@v1.16.2/bpf/tests/bpftest/trf.pb.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright Authors of Cilium 3 4 // Code generated by protoc-gen-go. DO NOT EDIT. 5 // versions: 6 // protoc-gen-go v1.28.0 7 // protoc v3.21.0 8 // source: trf.proto 9 10 package bpftests 11 12 import ( 13 reflect "reflect" 14 sync "sync" 15 16 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 17 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 type SuiteResult_TestResult_TestStatus int32 28 29 const ( 30 // Unable to execute test, not indicative of the test itself, usually an unexpected error in the framework 31 // like out of memory conditions. 32 SuiteResult_TestResult_ERROR SuiteResult_TestResult_TestStatus = 0 33 SuiteResult_TestResult_PASS SuiteResult_TestResult_TestStatus = 1 34 SuiteResult_TestResult_FAIL SuiteResult_TestResult_TestStatus = 2 35 // The test was skipped, for example because the feature under test is disabled or unavailable with the 36 // current settings or on this platform. 37 SuiteResult_TestResult_SKIP SuiteResult_TestResult_TestStatus = 3 38 ) 39 40 // Enum value maps for SuiteResult_TestResult_TestStatus. 41 var ( 42 SuiteResult_TestResult_TestStatus_name = map[int32]string{ 43 0: "ERROR", 44 1: "PASS", 45 2: "FAIL", 46 3: "SKIP", 47 } 48 SuiteResult_TestResult_TestStatus_value = map[string]int32{ 49 "ERROR": 0, 50 "PASS": 1, 51 "FAIL": 2, 52 "SKIP": 3, 53 } 54 ) 55 56 func (x SuiteResult_TestResult_TestStatus) Enum() *SuiteResult_TestResult_TestStatus { 57 p := new(SuiteResult_TestResult_TestStatus) 58 *p = x 59 return p 60 } 61 62 func (x SuiteResult_TestResult_TestStatus) String() string { 63 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 64 } 65 66 func (SuiteResult_TestResult_TestStatus) Descriptor() protoreflect.EnumDescriptor { 67 return file_trf_proto_enumTypes[0].Descriptor() 68 } 69 70 func (SuiteResult_TestResult_TestStatus) Type() protoreflect.EnumType { 71 return &file_trf_proto_enumTypes[0] 72 } 73 74 func (x SuiteResult_TestResult_TestStatus) Number() protoreflect.EnumNumber { 75 return protoreflect.EnumNumber(x) 76 } 77 78 // Deprecated: Use SuiteResult_TestResult_TestStatus.Descriptor instead. 79 func (SuiteResult_TestResult_TestStatus) EnumDescriptor() ([]byte, []int) { 80 return file_trf_proto_rawDescGZIP(), []int{0, 0, 0} 81 } 82 83 // TRF (Test Result Format) 84 type SuiteResult struct { 85 state protoimpl.MessageState 86 sizeCache protoimpl.SizeCache 87 unknownFields protoimpl.UnknownFields 88 89 Results []*SuiteResult_TestResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` 90 SuiteLog []*Log `protobuf:"bytes,2,rep,name=suite_log,json=suiteLog,proto3" json:"suite_log,omitempty"` 91 } 92 93 func (x *SuiteResult) Reset() { 94 *x = SuiteResult{} 95 if protoimpl.UnsafeEnabled { 96 mi := &file_trf_proto_msgTypes[0] 97 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 98 ms.StoreMessageInfo(mi) 99 } 100 } 101 102 func (x *SuiteResult) String() string { 103 return protoimpl.X.MessageStringOf(x) 104 } 105 106 func (*SuiteResult) ProtoMessage() {} 107 108 func (x *SuiteResult) ProtoReflect() protoreflect.Message { 109 mi := &file_trf_proto_msgTypes[0] 110 if protoimpl.UnsafeEnabled && x != nil { 111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 112 if ms.LoadMessageInfo() == nil { 113 ms.StoreMessageInfo(mi) 114 } 115 return ms 116 } 117 return mi.MessageOf(x) 118 } 119 120 // Deprecated: Use SuiteResult.ProtoReflect.Descriptor instead. 121 func (*SuiteResult) Descriptor() ([]byte, []int) { 122 return file_trf_proto_rawDescGZIP(), []int{0} 123 } 124 125 func (x *SuiteResult) GetResults() []*SuiteResult_TestResult { 126 if x != nil { 127 return x.Results 128 } 129 return nil 130 } 131 132 func (x *SuiteResult) GetSuiteLog() []*Log { 133 if x != nil { 134 return x.SuiteLog 135 } 136 return nil 137 } 138 139 // bpf_trace_printk style logging 140 type Log struct { 141 state protoimpl.MessageState 142 sizeCache protoimpl.SizeCache 143 unknownFields protoimpl.UnknownFields 144 145 Fmt string `protobuf:"bytes,1,opt,name=fmt,proto3" json:"fmt,omitempty"` 146 Args []uint64 `protobuf:"fixed64,2,rep,packed,name=args,proto3" json:"args,omitempty"` 147 } 148 149 func (x *Log) Reset() { 150 *x = Log{} 151 if protoimpl.UnsafeEnabled { 152 mi := &file_trf_proto_msgTypes[1] 153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 154 ms.StoreMessageInfo(mi) 155 } 156 } 157 158 func (x *Log) String() string { 159 return protoimpl.X.MessageStringOf(x) 160 } 161 162 func (*Log) ProtoMessage() {} 163 164 func (x *Log) ProtoReflect() protoreflect.Message { 165 mi := &file_trf_proto_msgTypes[1] 166 if protoimpl.UnsafeEnabled && x != nil { 167 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 168 if ms.LoadMessageInfo() == nil { 169 ms.StoreMessageInfo(mi) 170 } 171 return ms 172 } 173 return mi.MessageOf(x) 174 } 175 176 // Deprecated: Use Log.ProtoReflect.Descriptor instead. 177 func (*Log) Descriptor() ([]byte, []int) { 178 return file_trf_proto_rawDescGZIP(), []int{1} 179 } 180 181 func (x *Log) GetFmt() string { 182 if x != nil { 183 return x.Fmt 184 } 185 return "" 186 } 187 188 func (x *Log) GetArgs() []uint64 { 189 if x != nil { 190 return x.Args 191 } 192 return nil 193 } 194 195 type SuiteResult_TestResult struct { 196 state protoimpl.MessageState 197 sizeCache protoimpl.SizeCache 198 unknownFields protoimpl.UnknownFields 199 200 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 201 Status SuiteResult_TestResult_TestStatus `protobuf:"varint,2,opt,name=status,proto3,enum=SuiteResult_TestResult_TestStatus" json:"status,omitempty"` 202 TestLog []*Log `protobuf:"bytes,3,rep,name=test_log,json=testLog,proto3" json:"test_log,omitempty"` 203 } 204 205 func (x *SuiteResult_TestResult) Reset() { 206 *x = SuiteResult_TestResult{} 207 if protoimpl.UnsafeEnabled { 208 mi := &file_trf_proto_msgTypes[2] 209 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 210 ms.StoreMessageInfo(mi) 211 } 212 } 213 214 func (x *SuiteResult_TestResult) String() string { 215 return protoimpl.X.MessageStringOf(x) 216 } 217 218 func (*SuiteResult_TestResult) ProtoMessage() {} 219 220 func (x *SuiteResult_TestResult) ProtoReflect() protoreflect.Message { 221 mi := &file_trf_proto_msgTypes[2] 222 if protoimpl.UnsafeEnabled && x != nil { 223 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 224 if ms.LoadMessageInfo() == nil { 225 ms.StoreMessageInfo(mi) 226 } 227 return ms 228 } 229 return mi.MessageOf(x) 230 } 231 232 // Deprecated: Use SuiteResult_TestResult.ProtoReflect.Descriptor instead. 233 func (*SuiteResult_TestResult) Descriptor() ([]byte, []int) { 234 return file_trf_proto_rawDescGZIP(), []int{0, 0} 235 } 236 237 func (x *SuiteResult_TestResult) GetName() string { 238 if x != nil { 239 return x.Name 240 } 241 return "" 242 } 243 244 func (x *SuiteResult_TestResult) GetStatus() SuiteResult_TestResult_TestStatus { 245 if x != nil { 246 return x.Status 247 } 248 return SuiteResult_TestResult_ERROR 249 } 250 251 func (x *SuiteResult_TestResult) GetTestLog() []*Log { 252 if x != nil { 253 return x.TestLog 254 } 255 return nil 256 } 257 258 var File_trf_proto protoreflect.FileDescriptor 259 260 var file_trf_proto_rawDesc = []byte{ 261 0x0a, 0x09, 0x74, 0x72, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9a, 0x02, 0x0a, 0x0b, 262 0x53, 0x75, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x31, 0x0a, 0x07, 0x72, 263 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x53, 264 0x75, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 265 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x21, 266 0x0a, 0x09, 0x73, 0x75, 0x69, 0x74, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x03, 0x28, 267 0x0b, 0x32, 0x04, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x08, 0x73, 0x75, 0x69, 0x74, 0x65, 0x4c, 0x6f, 268 0x67, 0x1a, 0xb4, 0x01, 0x0a, 0x0a, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 269 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 270 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 271 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x53, 0x75, 0x69, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 272 0x6c, 0x74, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x54, 0x65, 273 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 274 0x12, 0x1f, 0x0a, 0x08, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x18, 0x03, 0x20, 0x03, 275 0x28, 0x0b, 0x32, 0x04, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x07, 0x74, 0x65, 0x73, 0x74, 0x4c, 0x6f, 276 0x67, 0x22, 0x35, 0x0a, 0x0a, 0x54, 0x65, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 277 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x41, 278 0x53, 0x53, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x02, 0x12, 0x08, 279 0x0a, 0x04, 0x53, 0x4b, 0x49, 0x50, 0x10, 0x03, 0x22, 0x2b, 0x0a, 0x03, 0x4c, 0x6f, 0x67, 0x12, 280 0x10, 0x0a, 0x03, 0x66, 0x6d, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x66, 0x6d, 281 0x74, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x06, 0x52, 282 0x04, 0x61, 0x72, 0x67, 0x73, 0x42, 0x0c, 0x5a, 0x0a, 0x2e, 0x3b, 0x62, 0x70, 0x66, 0x74, 0x65, 283 0x73, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 284 } 285 286 var ( 287 file_trf_proto_rawDescOnce sync.Once 288 file_trf_proto_rawDescData = file_trf_proto_rawDesc 289 ) 290 291 func file_trf_proto_rawDescGZIP() []byte { 292 file_trf_proto_rawDescOnce.Do(func() { 293 file_trf_proto_rawDescData = protoimpl.X.CompressGZIP(file_trf_proto_rawDescData) 294 }) 295 return file_trf_proto_rawDescData 296 } 297 298 var file_trf_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 299 var file_trf_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 300 var file_trf_proto_goTypes = []interface{}{ 301 (SuiteResult_TestResult_TestStatus)(0), // 0: SuiteResult.TestResult.TestStatus 302 (*SuiteResult)(nil), // 1: SuiteResult 303 (*Log)(nil), // 2: Log 304 (*SuiteResult_TestResult)(nil), // 3: SuiteResult.TestResult 305 } 306 var file_trf_proto_depIdxs = []int32{ 307 3, // 0: SuiteResult.results:type_name -> SuiteResult.TestResult 308 2, // 1: SuiteResult.suite_log:type_name -> Log 309 0, // 2: SuiteResult.TestResult.status:type_name -> SuiteResult.TestResult.TestStatus 310 2, // 3: SuiteResult.TestResult.test_log:type_name -> Log 311 4, // [4:4] is the sub-list for method output_type 312 4, // [4:4] is the sub-list for method input_type 313 4, // [4:4] is the sub-list for extension type_name 314 4, // [4:4] is the sub-list for extension extendee 315 0, // [0:4] is the sub-list for field type_name 316 } 317 318 func init() { file_trf_proto_init() } 319 func file_trf_proto_init() { 320 if File_trf_proto != nil { 321 return 322 } 323 if !protoimpl.UnsafeEnabled { 324 file_trf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 325 switch v := v.(*SuiteResult); i { 326 case 0: 327 return &v.state 328 case 1: 329 return &v.sizeCache 330 case 2: 331 return &v.unknownFields 332 default: 333 return nil 334 } 335 } 336 file_trf_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 337 switch v := v.(*Log); i { 338 case 0: 339 return &v.state 340 case 1: 341 return &v.sizeCache 342 case 2: 343 return &v.unknownFields 344 default: 345 return nil 346 } 347 } 348 file_trf_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 349 switch v := v.(*SuiteResult_TestResult); i { 350 case 0: 351 return &v.state 352 case 1: 353 return &v.sizeCache 354 case 2: 355 return &v.unknownFields 356 default: 357 return nil 358 } 359 } 360 } 361 type x struct{} 362 out := protoimpl.TypeBuilder{ 363 File: protoimpl.DescBuilder{ 364 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 365 RawDescriptor: file_trf_proto_rawDesc, 366 NumEnums: 1, 367 NumMessages: 3, 368 NumExtensions: 0, 369 NumServices: 0, 370 }, 371 GoTypes: file_trf_proto_goTypes, 372 DependencyIndexes: file_trf_proto_depIdxs, 373 EnumInfos: file_trf_proto_enumTypes, 374 MessageInfos: file_trf_proto_msgTypes, 375 }.Build() 376 File_trf_proto = out.File 377 file_trf_proto_rawDesc = nil 378 file_trf_proto_goTypes = nil 379 file_trf_proto_depIdxs = nil 380 }