You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

311 lines
13 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/devtools/resultstore/v2/coverage.proto
  3. package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. // Describes line coverage for a file
  17. type LineCoverage struct {
  18. // Which source lines in the file represent the start of a statement that was
  19. // instrumented to detect whether it was executed by the test.
  20. //
  21. // This is a bitfield where i-th bit corresponds to the i-th line. Divide line
  22. // number by 8 to get index into byte array. Mod line number by 8 to get bit
  23. // number (0 = LSB, 7 = MSB).
  24. //
  25. // A 1 denotes the line was instrumented.
  26. // A 0 denotes the line was not instrumented.
  27. InstrumentedLines []byte `protobuf:"bytes,1,opt,name=instrumented_lines,json=instrumentedLines,proto3" json:"instrumented_lines,omitempty"`
  28. // Which of the instrumented source lines were executed by the test. Should
  29. // include lines that were not instrumented.
  30. //
  31. // This is a bitfield where i-th bit corresponds to the i-th line. Divide line
  32. // number by 8 to get index into byte array. Mod line number by 8 to get bit
  33. // number (0 = LSB, 7 = MSB).
  34. //
  35. // A 1 denotes the line was executed.
  36. // A 0 denotes the line was not executed.
  37. ExecutedLines []byte `protobuf:"bytes,2,opt,name=executed_lines,json=executedLines,proto3" json:"executed_lines,omitempty"`
  38. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  39. XXX_unrecognized []byte `json:"-"`
  40. XXX_sizecache int32 `json:"-"`
  41. }
  42. func (m *LineCoverage) Reset() { *m = LineCoverage{} }
  43. func (m *LineCoverage) String() string { return proto.CompactTextString(m) }
  44. func (*LineCoverage) ProtoMessage() {}
  45. func (*LineCoverage) Descriptor() ([]byte, []int) {
  46. return fileDescriptor_coverage_65d8ed69894fd937, []int{0}
  47. }
  48. func (m *LineCoverage) XXX_Unmarshal(b []byte) error {
  49. return xxx_messageInfo_LineCoverage.Unmarshal(m, b)
  50. }
  51. func (m *LineCoverage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  52. return xxx_messageInfo_LineCoverage.Marshal(b, m, deterministic)
  53. }
  54. func (dst *LineCoverage) XXX_Merge(src proto.Message) {
  55. xxx_messageInfo_LineCoverage.Merge(dst, src)
  56. }
  57. func (m *LineCoverage) XXX_Size() int {
  58. return xxx_messageInfo_LineCoverage.Size(m)
  59. }
  60. func (m *LineCoverage) XXX_DiscardUnknown() {
  61. xxx_messageInfo_LineCoverage.DiscardUnknown(m)
  62. }
  63. var xxx_messageInfo_LineCoverage proto.InternalMessageInfo
  64. func (m *LineCoverage) GetInstrumentedLines() []byte {
  65. if m != nil {
  66. return m.InstrumentedLines
  67. }
  68. return nil
  69. }
  70. func (m *LineCoverage) GetExecutedLines() []byte {
  71. if m != nil {
  72. return m.ExecutedLines
  73. }
  74. return nil
  75. }
  76. // Describes branch coverage for a file
  77. type BranchCoverage struct {
  78. // The field branch_present denotes the lines containing at least one branch.
  79. //
  80. // This is a bitfield where i-th bit corresponds to the i-th line. Divide line
  81. // number by 8 to get index into byte array. Mod line number by 8 to get bit
  82. // number (0 = LSB, 7 = MSB).
  83. //
  84. // A 1 denotes the line contains at least one branch.
  85. // A 0 denotes the line contains no branches.
  86. BranchPresent []byte `protobuf:"bytes,1,opt,name=branch_present,json=branchPresent,proto3" json:"branch_present,omitempty"`
  87. // Contains the number of branches present, only for the lines which have the
  88. // corresponding bit set in branch_present, in a relative order ignoring
  89. // lines which do not have any branches.
  90. BranchesInLine []int32 `protobuf:"varint,2,rep,packed,name=branches_in_line,json=branchesInLine,proto3" json:"branches_in_line,omitempty"`
  91. // As each branch can have any one of the following three states: not
  92. // executed, executed but not taken, executed and taken.
  93. //
  94. // This is a bitfield where i-th bit corresponds to the i-th line. Divide line
  95. // number by 8 to get index into byte array. Mod line number by 8 to get bit
  96. // number (0 = LSB, 7 = MSB).
  97. //
  98. // i-th bit of the following two byte arrays are used to denote the above
  99. // mentioned states.
  100. //
  101. // not executed: i-th bit of executed == 0 && i-th bit of taken == 0
  102. // executed but not taken: i-th bit of executed == 1 && i-th bit of taken == 0
  103. // executed and taken: i-th bit of executed == 1 && i-th bit of taken == 1
  104. Executed []byte `protobuf:"bytes,3,opt,name=executed,proto3" json:"executed,omitempty"`
  105. // Described above.
  106. Taken []byte `protobuf:"bytes,4,opt,name=taken,proto3" json:"taken,omitempty"`
  107. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  108. XXX_unrecognized []byte `json:"-"`
  109. XXX_sizecache int32 `json:"-"`
  110. }
  111. func (m *BranchCoverage) Reset() { *m = BranchCoverage{} }
  112. func (m *BranchCoverage) String() string { return proto.CompactTextString(m) }
  113. func (*BranchCoverage) ProtoMessage() {}
  114. func (*BranchCoverage) Descriptor() ([]byte, []int) {
  115. return fileDescriptor_coverage_65d8ed69894fd937, []int{1}
  116. }
  117. func (m *BranchCoverage) XXX_Unmarshal(b []byte) error {
  118. return xxx_messageInfo_BranchCoverage.Unmarshal(m, b)
  119. }
  120. func (m *BranchCoverage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  121. return xxx_messageInfo_BranchCoverage.Marshal(b, m, deterministic)
  122. }
  123. func (dst *BranchCoverage) XXX_Merge(src proto.Message) {
  124. xxx_messageInfo_BranchCoverage.Merge(dst, src)
  125. }
  126. func (m *BranchCoverage) XXX_Size() int {
  127. return xxx_messageInfo_BranchCoverage.Size(m)
  128. }
  129. func (m *BranchCoverage) XXX_DiscardUnknown() {
  130. xxx_messageInfo_BranchCoverage.DiscardUnknown(m)
  131. }
  132. var xxx_messageInfo_BranchCoverage proto.InternalMessageInfo
  133. func (m *BranchCoverage) GetBranchPresent() []byte {
  134. if m != nil {
  135. return m.BranchPresent
  136. }
  137. return nil
  138. }
  139. func (m *BranchCoverage) GetBranchesInLine() []int32 {
  140. if m != nil {
  141. return m.BranchesInLine
  142. }
  143. return nil
  144. }
  145. func (m *BranchCoverage) GetExecuted() []byte {
  146. if m != nil {
  147. return m.Executed
  148. }
  149. return nil
  150. }
  151. func (m *BranchCoverage) GetTaken() []byte {
  152. if m != nil {
  153. return m.Taken
  154. }
  155. return nil
  156. }
  157. // Describes code coverage for a particular file under test.
  158. type FileCoverage struct {
  159. // Path of source file within the SourceContext of this Invocation.
  160. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
  161. // Details of lines in a file required to calculate line coverage.
  162. LineCoverage *LineCoverage `protobuf:"bytes,2,opt,name=line_coverage,json=lineCoverage,proto3" json:"line_coverage,omitempty"`
  163. // Details of branches in a file required to calculate branch coverage.
  164. BranchCoverage *BranchCoverage `protobuf:"bytes,3,opt,name=branch_coverage,json=branchCoverage,proto3" json:"branch_coverage,omitempty"`
  165. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  166. XXX_unrecognized []byte `json:"-"`
  167. XXX_sizecache int32 `json:"-"`
  168. }
  169. func (m *FileCoverage) Reset() { *m = FileCoverage{} }
  170. func (m *FileCoverage) String() string { return proto.CompactTextString(m) }
  171. func (*FileCoverage) ProtoMessage() {}
  172. func (*FileCoverage) Descriptor() ([]byte, []int) {
  173. return fileDescriptor_coverage_65d8ed69894fd937, []int{2}
  174. }
  175. func (m *FileCoverage) XXX_Unmarshal(b []byte) error {
  176. return xxx_messageInfo_FileCoverage.Unmarshal(m, b)
  177. }
  178. func (m *FileCoverage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  179. return xxx_messageInfo_FileCoverage.Marshal(b, m, deterministic)
  180. }
  181. func (dst *FileCoverage) XXX_Merge(src proto.Message) {
  182. xxx_messageInfo_FileCoverage.Merge(dst, src)
  183. }
  184. func (m *FileCoverage) XXX_Size() int {
  185. return xxx_messageInfo_FileCoverage.Size(m)
  186. }
  187. func (m *FileCoverage) XXX_DiscardUnknown() {
  188. xxx_messageInfo_FileCoverage.DiscardUnknown(m)
  189. }
  190. var xxx_messageInfo_FileCoverage proto.InternalMessageInfo
  191. func (m *FileCoverage) GetPath() string {
  192. if m != nil {
  193. return m.Path
  194. }
  195. return ""
  196. }
  197. func (m *FileCoverage) GetLineCoverage() *LineCoverage {
  198. if m != nil {
  199. return m.LineCoverage
  200. }
  201. return nil
  202. }
  203. func (m *FileCoverage) GetBranchCoverage() *BranchCoverage {
  204. if m != nil {
  205. return m.BranchCoverage
  206. }
  207. return nil
  208. }
  209. // Describes code coverage for a build or test Action. This is used to store
  210. // baseline coverage for build Actions and test coverage for test Actions.
  211. type ActionCoverage struct {
  212. // List of coverage info for all source files that the TestResult covers.
  213. FileCoverages []*FileCoverage `protobuf:"bytes,2,rep,name=file_coverages,json=fileCoverages,proto3" json:"file_coverages,omitempty"`
  214. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  215. XXX_unrecognized []byte `json:"-"`
  216. XXX_sizecache int32 `json:"-"`
  217. }
  218. func (m *ActionCoverage) Reset() { *m = ActionCoverage{} }
  219. func (m *ActionCoverage) String() string { return proto.CompactTextString(m) }
  220. func (*ActionCoverage) ProtoMessage() {}
  221. func (*ActionCoverage) Descriptor() ([]byte, []int) {
  222. return fileDescriptor_coverage_65d8ed69894fd937, []int{3}
  223. }
  224. func (m *ActionCoverage) XXX_Unmarshal(b []byte) error {
  225. return xxx_messageInfo_ActionCoverage.Unmarshal(m, b)
  226. }
  227. func (m *ActionCoverage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  228. return xxx_messageInfo_ActionCoverage.Marshal(b, m, deterministic)
  229. }
  230. func (dst *ActionCoverage) XXX_Merge(src proto.Message) {
  231. xxx_messageInfo_ActionCoverage.Merge(dst, src)
  232. }
  233. func (m *ActionCoverage) XXX_Size() int {
  234. return xxx_messageInfo_ActionCoverage.Size(m)
  235. }
  236. func (m *ActionCoverage) XXX_DiscardUnknown() {
  237. xxx_messageInfo_ActionCoverage.DiscardUnknown(m)
  238. }
  239. var xxx_messageInfo_ActionCoverage proto.InternalMessageInfo
  240. func (m *ActionCoverage) GetFileCoverages() []*FileCoverage {
  241. if m != nil {
  242. return m.FileCoverages
  243. }
  244. return nil
  245. }
  246. func init() {
  247. proto.RegisterType((*LineCoverage)(nil), "google.devtools.resultstore.v2.LineCoverage")
  248. proto.RegisterType((*BranchCoverage)(nil), "google.devtools.resultstore.v2.BranchCoverage")
  249. proto.RegisterType((*FileCoverage)(nil), "google.devtools.resultstore.v2.FileCoverage")
  250. proto.RegisterType((*ActionCoverage)(nil), "google.devtools.resultstore.v2.ActionCoverage")
  251. }
  252. func init() {
  253. proto.RegisterFile("google/devtools/resultstore/v2/coverage.proto", fileDescriptor_coverage_65d8ed69894fd937)
  254. }
  255. var fileDescriptor_coverage_65d8ed69894fd937 = []byte{
  256. // 372 bytes of a gzipped FileDescriptorProto
  257. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6b, 0xe3, 0x30,
  258. 0x10, 0xc5, 0xf9, 0x58, 0x76, 0x67, 0x6d, 0xef, 0xae, 0xd8, 0x83, 0xd9, 0xc3, 0x12, 0x0c, 0x81,
  259. 0x1c, 0x1a, 0x19, 0xd2, 0x63, 0x4f, 0x4d, 0xa1, 0x10, 0xe8, 0x21, 0x75, 0x0f, 0x85, 0x5e, 0x8c,
  260. 0xe3, 0x4c, 0x1c, 0x51, 0x45, 0x72, 0x25, 0xc5, 0xf4, 0x7f, 0xf4, 0x7f, 0xf5, 0x37, 0x95, 0xc8,
  261. 0x1f, 0x71, 0x0f, 0x6d, 0x7a, 0xd3, 0xbc, 0x79, 0xf3, 0xde, 0xcc, 0x43, 0x30, 0xcd, 0xa5, 0xcc,
  262. 0x39, 0x46, 0x6b, 0x2c, 0x8d, 0x94, 0x5c, 0x47, 0x0a, 0xf5, 0x9e, 0x1b, 0x6d, 0xa4, 0xc2, 0xa8,
  263. 0x9c, 0x45, 0x99, 0x2c, 0x51, 0xa5, 0x39, 0xd2, 0x42, 0x49, 0x23, 0xc9, 0xff, 0x8a, 0x4e, 0x1b,
  264. 0x3a, 0xed, 0xd0, 0x69, 0x39, 0x0b, 0xd7, 0xe0, 0xde, 0x30, 0x81, 0x57, 0xf5, 0x14, 0x99, 0x02,
  265. 0x61, 0x42, 0x1b, 0xb5, 0xdf, 0xa1, 0x30, 0xb8, 0x4e, 0x38, 0x13, 0xa8, 0x03, 0x67, 0xe4, 0x4c,
  266. 0xdc, 0xf8, 0x4f, 0xb7, 0x73, 0x98, 0xd2, 0x64, 0x0c, 0x3e, 0x3e, 0x63, 0xb6, 0x3f, 0x52, 0x7b,
  267. 0x96, 0xea, 0x35, 0xa8, 0xa5, 0x85, 0x2f, 0x0e, 0xf8, 0x73, 0x95, 0x8a, 0x6c, 0xdb, 0x1a, 0x8d,
  268. 0xc1, 0x5f, 0x59, 0x24, 0x29, 0x14, 0x6a, 0x14, 0xa6, 0x36, 0xf1, 0x2a, 0x74, 0x59, 0x81, 0x64,
  269. 0x02, 0xbf, 0x2b, 0x00, 0x75, 0xc2, 0x84, 0xf5, 0x08, 0x7a, 0xa3, 0xfe, 0x64, 0x18, 0xfb, 0x0d,
  270. 0xbe, 0x10, 0x07, 0x13, 0xf2, 0x0f, 0xbe, 0x37, 0xa6, 0x41, 0xdf, 0x4a, 0xb5, 0x35, 0xf9, 0x0b,
  271. 0x43, 0x93, 0x3e, 0xa2, 0x08, 0x06, 0xb6, 0x51, 0x15, 0xe1, 0xab, 0x03, 0xee, 0x35, 0xe3, 0xc7,
  272. 0xe3, 0x09, 0x0c, 0x8a, 0xd4, 0x6c, 0xed, 0x26, 0x3f, 0x62, 0xfb, 0x26, 0xb7, 0xe0, 0x1d, 0x4c,
  273. 0x93, 0x26, 0x57, 0x7b, 0xe0, 0xcf, 0xd9, 0x19, 0xfd, 0x3c, 0x58, 0xda, 0x4d, 0x35, 0x76, 0x79,
  274. 0x37, 0xe3, 0x7b, 0xf8, 0x55, 0x9f, 0xde, 0x8a, 0xf6, 0xad, 0x28, 0x3d, 0x25, 0xfa, 0x3e, 0xc3,
  275. 0x26, 0x82, 0xa6, 0x0e, 0x11, 0xfc, 0xcb, 0xcc, 0x30, 0x29, 0x5a, 0xab, 0x3b, 0xf0, 0x37, 0x8c,
  276. 0x1f, 0xb7, 0xd7, 0x36, 0xbc, 0x2f, 0xac, 0xdf, 0xcd, 0x25, 0xf6, 0x36, 0x9d, 0x4a, 0xcf, 0x9f,
  277. 0x20, 0xcc, 0xe4, 0xee, 0x84, 0xc2, 0xd2, 0x79, 0x58, 0xd4, 0x8c, 0x5c, 0xf2, 0x54, 0xe4, 0x54,
  278. 0xaa, 0x3c, 0xca, 0x51, 0xd8, 0x7f, 0x19, 0x55, 0xad, 0xb4, 0x60, 0xfa, 0xa3, 0x9f, 0x7c, 0xd1,
  279. 0x29, 0x57, 0xdf, 0xec, 0xd4, 0xf9, 0x5b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3e, 0x92, 0x57, 0x34,
  280. 0xfe, 0x02, 0x00, 0x00,
  281. }