Documentation ¶
Index ¶
- Variables
- type Branch
- func (*Branch) Descriptor() ([]byte, []int)
- func (m *Branch) GetCovered() int32
- func (m *Branch) GetLine() int32
- func (m *Branch) GetTotal() int32
- func (*Branch) ProtoMessage()
- func (m *Branch) Reset()
- func (m *Branch) String() string
- func (m *Branch) XXX_DiscardUnknown()
- func (m *Branch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Branch) XXX_Merge(src proto.Message)
- func (m *Branch) XXX_Size() int
- func (m *Branch) XXX_Unmarshal(b []byte) error
- type ColumnRange
- func (*ColumnRange) Descriptor() ([]byte, []int)
- func (m *ColumnRange) GetFirst() int32
- func (m *ColumnRange) GetLast() int32
- func (*ColumnRange) ProtoMessage()
- func (m *ColumnRange) Reset()
- func (m *ColumnRange) String() string
- func (m *ColumnRange) XXX_DiscardUnknown()
- func (m *ColumnRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ColumnRange) XXX_Merge(src proto.Message)
- func (m *ColumnRange) XXX_Size() int
- func (m *ColumnRange) XXX_Unmarshal(b []byte) error
- type ColumnRanges
- func (*ColumnRanges) Descriptor() ([]byte, []int)
- func (m *ColumnRanges) GetLine() int32
- func (m *ColumnRanges) GetRanges() []*ColumnRange
- func (*ColumnRanges) ProtoMessage()
- func (m *ColumnRanges) Reset()
- func (m *ColumnRanges) String() string
- func (m *ColumnRanges) XXX_DiscardUnknown()
- func (m *ColumnRanges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ColumnRanges) XXX_Merge(src proto.Message)
- func (m *ColumnRanges) XXX_Size() int
- func (m *ColumnRanges) XXX_Unmarshal(b []byte) error
- type ConfigCategory
- type ConfigSetting
- func (*ConfigSetting) Descriptor() ([]byte, []int)
- func (m *ConfigSetting) GetCategory() ConfigCategory
- func (m *ConfigSetting) GetName() string
- func (m *ConfigSetting) GetValue() string
- func (*ConfigSetting) ProtoMessage()
- func (m *ConfigSetting) Reset()
- func (m *ConfigSetting) String() string
- func (m *ConfigSetting) XXX_DiscardUnknown()
- func (m *ConfigSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConfigSetting) XXX_Merge(src proto.Message)
- func (m *ConfigSetting) XXX_Size() int
- func (m *ConfigSetting) XXX_Unmarshal(b []byte) error
- type CoverageReport
- func (*CoverageReport) Descriptor() ([]byte, []int)
- func (m *CoverageReport) GetBuildConfigs() []*ConfigSetting
- func (m *CoverageReport) GetCommit() *GitilesCommit
- func (m *CoverageReport) GetComponents() []*GroupCoverageSummary
- func (m *CoverageReport) GetDirs() []*GroupCoverageSummary
- func (m *CoverageReport) GetFileShards() []string
- func (m *CoverageReport) GetFiles() []*File
- func (m *CoverageReport) GetPatch() *GerritPatch
- func (m *CoverageReport) GetSummaries() []*Metric
- func (*CoverageReport) ProtoMessage()
- func (m *CoverageReport) Reset()
- func (m *CoverageReport) String() string
- func (m *CoverageReport) XXX_DiscardUnknown()
- func (m *CoverageReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CoverageReport) XXX_Merge(src proto.Message)
- func (m *CoverageReport) XXX_Size() int
- func (m *CoverageReport) XXX_Unmarshal(b []byte) error
- type CoverageSummary
- func (*CoverageSummary) Descriptor() ([]byte, []int)
- func (m *CoverageSummary) GetName() string
- func (m *CoverageSummary) GetPath() string
- func (m *CoverageSummary) GetSummaries() []*Metric
- func (*CoverageSummary) ProtoMessage()
- func (m *CoverageSummary) Reset()
- func (m *CoverageSummary) String() string
- func (m *CoverageSummary) XXX_DiscardUnknown()
- func (m *CoverageSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CoverageSummary) XXX_Merge(src proto.Message)
- func (m *CoverageSummary) XXX_Size() int
- func (m *CoverageSummary) XXX_Unmarshal(b []byte) error
- type File
- func (*File) Descriptor() ([]byte, []int)
- func (m *File) GetBranches() []*Branch
- func (m *File) GetLines() []*LineRange
- func (m *File) GetPath() string
- func (m *File) GetRevision() string
- func (m *File) GetSummaries() []*Metric
- func (m *File) GetTimestamp() int64
- func (m *File) GetUncoveredBlocks() []*ColumnRanges
- func (*File) ProtoMessage()
- func (m *File) Reset()
- func (m *File) String() string
- func (m *File) XXX_DiscardUnknown()
- func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *File) XXX_Merge(src proto.Message)
- func (m *File) XXX_Size() int
- func (m *File) XXX_Unmarshal(b []byte) error
- type GerritPatch
- func (*GerritPatch) Descriptor() ([]byte, []int)
- func (m *GerritPatch) GetCl() int32
- func (m *GerritPatch) GetHost() string
- func (m *GerritPatch) GetPatch() int32
- func (m *GerritPatch) GetProject() string
- func (*GerritPatch) ProtoMessage()
- func (m *GerritPatch) Reset()
- func (m *GerritPatch) String() string
- func (m *GerritPatch) XXX_DiscardUnknown()
- func (m *GerritPatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GerritPatch) XXX_Merge(src proto.Message)
- func (m *GerritPatch) XXX_Size() int
- func (m *GerritPatch) XXX_Unmarshal(b []byte) error
- type GitilesCommit
- func (*GitilesCommit) Descriptor() ([]byte, []int)
- func (m *GitilesCommit) GetCommitPosition() int32
- func (m *GitilesCommit) GetHost() string
- func (m *GitilesCommit) GetProject() string
- func (m *GitilesCommit) GetRevision() string
- func (*GitilesCommit) ProtoMessage()
- func (m *GitilesCommit) Reset()
- func (m *GitilesCommit) String() string
- func (m *GitilesCommit) XXX_DiscardUnknown()
- func (m *GitilesCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GitilesCommit) XXX_Merge(src proto.Message)
- func (m *GitilesCommit) XXX_Size() int
- func (m *GitilesCommit) XXX_Unmarshal(b []byte) error
- type GroupCoverageSummary
- func (*GroupCoverageSummary) Descriptor() ([]byte, []int)
- func (m *GroupCoverageSummary) GetDirs() []*CoverageSummary
- func (m *GroupCoverageSummary) GetFiles() []*CoverageSummary
- func (m *GroupCoverageSummary) GetPath() string
- func (m *GroupCoverageSummary) GetSummaries() []*Metric
- func (*GroupCoverageSummary) ProtoMessage()
- func (m *GroupCoverageSummary) Reset()
- func (m *GroupCoverageSummary) String() string
- func (m *GroupCoverageSummary) XXX_DiscardUnknown()
- func (m *GroupCoverageSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GroupCoverageSummary) XXX_Merge(src proto.Message)
- func (m *GroupCoverageSummary) XXX_Size() int
- func (m *GroupCoverageSummary) XXX_Unmarshal(b []byte) error
- type LineRange
- func (*LineRange) Descriptor() ([]byte, []int)
- func (m *LineRange) GetCount() int64
- func (m *LineRange) GetFirst() int32
- func (m *LineRange) GetLast() int32
- func (*LineRange) ProtoMessage()
- func (m *LineRange) Reset()
- func (m *LineRange) String() string
- func (m *LineRange) XXX_DiscardUnknown()
- func (m *LineRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LineRange) XXX_Merge(src proto.Message)
- func (m *LineRange) XXX_Size() int
- func (m *LineRange) XXX_Unmarshal(b []byte) error
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)
- func (m *Metric) GetCovered() int32
- func (m *Metric) GetName() string
- func (m *Metric) GetTotal() int32
- func (*Metric) ProtoMessage()
- func (m *Metric) Reset()
- func (m *Metric) String() string
- func (m *Metric) XXX_DiscardUnknown()
- func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metric) XXX_Merge(src proto.Message)
- func (m *Metric) XXX_Size() int
- func (m *Metric) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ConfigCategory_name = map[int32]string{
0: "BUILD",
1: "TEST",
2: "TESTHARNESS",
3: "COVERAGE_TOOL",
}
var ConfigCategory_value = map[string]int32{
"BUILD": 0,
"TEST": 1,
"TESTHARNESS": 2,
"COVERAGE_TOOL": 3,
}
Functions ¶
This section is empty.
Types ¶
type Branch ¶
type Branch struct { // The line number which the branch info belongs to. Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"` // The total number of branches. Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // The number of covered branches. Covered int32 `protobuf:"varint,3,opt,name=covered,proto3" json:"covered,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents the code coverage of code branches at a line.
func (*Branch) Descriptor ¶
func (*Branch) GetCovered ¶
func (*Branch) ProtoMessage ¶
func (*Branch) ProtoMessage()
func (*Branch) XXX_DiscardUnknown ¶
func (m *Branch) XXX_DiscardUnknown()
func (*Branch) XXX_Marshal ¶
func (*Branch) XXX_Unmarshal ¶
type ColumnRange ¶
type ColumnRange struct { // The first column of the code block. Inclusive. First int32 `protobuf:"varint,1,opt,name=first,proto3" json:"first,omitempty"` // The last column of the code block. Inclusive. // If not set, it is the same as `first` above. Last int32 `protobuf:"varint,2,opt,name=last,proto3" json:"last,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents column range within the same line.
func (*ColumnRange) Descriptor ¶
func (*ColumnRange) Descriptor() ([]byte, []int)
func (*ColumnRange) GetFirst ¶
func (m *ColumnRange) GetFirst() int32
func (*ColumnRange) GetLast ¶
func (m *ColumnRange) GetLast() int32
func (*ColumnRange) ProtoMessage ¶
func (*ColumnRange) ProtoMessage()
func (*ColumnRange) Reset ¶
func (m *ColumnRange) Reset()
func (*ColumnRange) String ¶
func (m *ColumnRange) String() string
func (*ColumnRange) XXX_DiscardUnknown ¶
func (m *ColumnRange) XXX_DiscardUnknown()
func (*ColumnRange) XXX_Marshal ¶
func (m *ColumnRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ColumnRange) XXX_Merge ¶
func (m *ColumnRange) XXX_Merge(src proto.Message)
func (*ColumnRange) XXX_Size ¶
func (m *ColumnRange) XXX_Size() int
func (*ColumnRange) XXX_Unmarshal ¶
func (m *ColumnRange) XXX_Unmarshal(b []byte) error
type ColumnRanges ¶
type ColumnRanges struct { // The line number of the code block. Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"` // The column ranges within the line. Ranges []*ColumnRange `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents multiple column ranges of a line.
func (*ColumnRanges) Descriptor ¶
func (*ColumnRanges) Descriptor() ([]byte, []int)
func (*ColumnRanges) GetLine ¶
func (m *ColumnRanges) GetLine() int32
func (*ColumnRanges) GetRanges ¶
func (m *ColumnRanges) GetRanges() []*ColumnRange
func (*ColumnRanges) ProtoMessage ¶
func (*ColumnRanges) ProtoMessage()
func (*ColumnRanges) Reset ¶
func (m *ColumnRanges) Reset()
func (*ColumnRanges) String ¶
func (m *ColumnRanges) String() string
func (*ColumnRanges) XXX_DiscardUnknown ¶
func (m *ColumnRanges) XXX_DiscardUnknown()
func (*ColumnRanges) XXX_Marshal ¶
func (m *ColumnRanges) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ColumnRanges) XXX_Merge ¶
func (m *ColumnRanges) XXX_Merge(src proto.Message)
func (*ColumnRanges) XXX_Size ¶
func (m *ColumnRanges) XXX_Size() int
func (*ColumnRanges) XXX_Unmarshal ¶
func (m *ColumnRanges) XXX_Unmarshal(b []byte) error
type ConfigCategory ¶
type ConfigCategory int32
Represents a configuration category that is related to the coverage data.
const ( // Related to produce the test binary and data. ConfigCategory_BUILD ConfigCategory = 0 // Related to run the tests. ConfigCategory_TEST ConfigCategory = 1 // Related to the test itself. ConfigCategory_TESTHARNESS ConfigCategory = 2 // Related to the coverage tool. ConfigCategory_COVERAGE_TOOL ConfigCategory = 3 )
func (ConfigCategory) EnumDescriptor ¶
func (ConfigCategory) EnumDescriptor() ([]byte, []int)
func (ConfigCategory) String ¶
func (x ConfigCategory) String() string
type ConfigSetting ¶
type ConfigSetting struct { // The category of the setting. Category ConfigCategory `protobuf:"varint,1,opt,name=category,proto3,enum=codecoverage.ConfigCategory" json:"category,omitempty"` // Name of the key, e.g. "builder". Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Value for the key, e.g. "Linux Builder". Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents a config setting.
func (*ConfigSetting) Descriptor ¶
func (*ConfigSetting) Descriptor() ([]byte, []int)
func (*ConfigSetting) GetCategory ¶
func (m *ConfigSetting) GetCategory() ConfigCategory
func (*ConfigSetting) GetName ¶
func (m *ConfigSetting) GetName() string
func (*ConfigSetting) GetValue ¶
func (m *ConfigSetting) GetValue() string
func (*ConfigSetting) ProtoMessage ¶
func (*ConfigSetting) ProtoMessage()
func (*ConfigSetting) Reset ¶
func (m *ConfigSetting) Reset()
func (*ConfigSetting) String ¶
func (m *ConfigSetting) String() string
func (*ConfigSetting) XXX_DiscardUnknown ¶
func (m *ConfigSetting) XXX_DiscardUnknown()
func (*ConfigSetting) XXX_Marshal ¶
func (m *ConfigSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigSetting) XXX_Merge ¶
func (m *ConfigSetting) XXX_Merge(src proto.Message)
func (*ConfigSetting) XXX_Size ¶
func (m *ConfigSetting) XXX_Size() int
func (*ConfigSetting) XXX_Unmarshal ¶
func (m *ConfigSetting) XXX_Unmarshal(b []byte) error
type CoverageReport ¶
type CoverageReport struct { // Either a Gitiles commit or a Gerrit patch must be provided. Commit *GitilesCommit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"` Patch *GerritPatch `protobuf:"bytes,2,opt,name=patch,proto3" json:"patch,omitempty"` // The build/test/etc configurations that were used to generate coverage data. BuildConfigs []*ConfigSetting `protobuf:"bytes,3,rep,name=build_configs,json=buildConfigs,proto3" json:"build_configs,omitempty"` // Code coverage info of individual source files. Files []*File `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"` // Code coverage info of individual source files saved in separate files. FileShards []string `protobuf:"bytes,5,rep,name=file_shards,json=fileShards,proto3" json:"file_shards,omitempty"` // Code coverage summary for all directories. Dirs []*GroupCoverageSummary `protobuf:"bytes,6,rep,name=dirs,proto3" json:"dirs,omitempty"` // Code coverage summary for all crbug components. Components []*GroupCoverageSummary `protobuf:"bytes,7,rep,name=components,proto3" json:"components,omitempty"` // Code coverage summary for the root directory. Summaries []*Metric `protobuf:"bytes,8,rep,name=summaries,proto3" json:"summaries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents a code coverage report.
func (*CoverageReport) Descriptor ¶
func (*CoverageReport) Descriptor() ([]byte, []int)
func (*CoverageReport) GetBuildConfigs ¶
func (m *CoverageReport) GetBuildConfigs() []*ConfigSetting
func (*CoverageReport) GetCommit ¶
func (m *CoverageReport) GetCommit() *GitilesCommit
func (*CoverageReport) GetComponents ¶
func (m *CoverageReport) GetComponents() []*GroupCoverageSummary
func (*CoverageReport) GetDirs ¶
func (m *CoverageReport) GetDirs() []*GroupCoverageSummary
func (*CoverageReport) GetFileShards ¶
func (m *CoverageReport) GetFileShards() []string
func (*CoverageReport) GetFiles ¶
func (m *CoverageReport) GetFiles() []*File
func (*CoverageReport) GetPatch ¶
func (m *CoverageReport) GetPatch() *GerritPatch
func (*CoverageReport) GetSummaries ¶
func (m *CoverageReport) GetSummaries() []*Metric
func (*CoverageReport) ProtoMessage ¶
func (*CoverageReport) ProtoMessage()
func (*CoverageReport) Reset ¶
func (m *CoverageReport) Reset()
func (*CoverageReport) String ¶
func (m *CoverageReport) String() string
func (*CoverageReport) XXX_DiscardUnknown ¶
func (m *CoverageReport) XXX_DiscardUnknown()
func (*CoverageReport) XXX_Marshal ¶
func (m *CoverageReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CoverageReport) XXX_Merge ¶
func (m *CoverageReport) XXX_Merge(src proto.Message)
func (*CoverageReport) XXX_Size ¶
func (m *CoverageReport) XXX_Size() int
func (*CoverageReport) XXX_Unmarshal ¶
func (m *CoverageReport) XXX_Unmarshal(b []byte) error
type CoverageSummary ¶
type CoverageSummary struct { // The name of the file, directory, or crbug component. // For a directory, it should end with a "/", e.g. "base/". // For a file, it should be the file name. // For a crbug component, it should be the full path. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The full path to the file, directory, or crbug component. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // The metrics for the file or directory. Summaries []*Metric `protobuf:"bytes,3,rep,name=summaries,proto3" json:"summaries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents the summary metrics for a given file or a directory.
func (*CoverageSummary) Descriptor ¶
func (*CoverageSummary) Descriptor() ([]byte, []int)
func (*CoverageSummary) GetName ¶
func (m *CoverageSummary) GetName() string
func (*CoverageSummary) GetPath ¶
func (m *CoverageSummary) GetPath() string
func (*CoverageSummary) GetSummaries ¶
func (m *CoverageSummary) GetSummaries() []*Metric
func (*CoverageSummary) ProtoMessage ¶
func (*CoverageSummary) ProtoMessage()
func (*CoverageSummary) Reset ¶
func (m *CoverageSummary) Reset()
func (*CoverageSummary) String ¶
func (m *CoverageSummary) String() string
func (*CoverageSummary) XXX_DiscardUnknown ¶
func (m *CoverageSummary) XXX_DiscardUnknown()
func (*CoverageSummary) XXX_Marshal ¶
func (m *CoverageSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CoverageSummary) XXX_Merge ¶
func (m *CoverageSummary) XXX_Merge(src proto.Message)
func (*CoverageSummary) XXX_Size ¶
func (m *CoverageSummary) XXX_Size() int
func (*CoverageSummary) XXX_Unmarshal ¶
func (m *CoverageSummary) XXX_Unmarshal(b []byte) error
type File ¶
type File struct { // Source absolute path to the file, e.g. '//base/file.cc'. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // The code coverage info of the lines in the file. // If a line is not executable or not instrumented to collect coverage info, // it is not coverable and won't be included here. Lines []*LineRange `protobuf:"bytes,3,rep,name=lines,proto3" json:"lines,omitempty"` // The uncovered code blocks in the file. UncoveredBlocks []*ColumnRanges `protobuf:"bytes,4,rep,name=uncovered_blocks,json=uncoveredBlocks,proto3" json:"uncovered_blocks,omitempty"` // The code branch info for if/else/etc. Branches []*Branch `protobuf:"bytes,5,rep,name=branches,proto3" json:"branches,omitempty"` // Code coverage summary for the file. Summaries []*Metric `protobuf:"bytes,6,rep,name=summaries,proto3" json:"summaries,omitempty"` // The git hash (up to the revision in the checkout) of the commit in Gitiles // when the file was most recently changed. // E.g. fc7b1de555d4b1fe5b7ff2e4c99662a10cf4ddd6. // Empty if the file not tracked by gitiles, such as generated source files. Revision string `protobuf:"bytes,7,opt,name=revision,proto3" json:"revision,omitempty"` // The UNIX timestamp of the committer date for the revision above. Timestamp int64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents the code coverage info of a single source file.
func (*File) Descriptor ¶
func (*File) GetBranches ¶
func (*File) GetRevision ¶
func (*File) GetSummaries ¶
func (*File) GetTimestamp ¶
func (*File) GetUncoveredBlocks ¶
func (m *File) GetUncoveredBlocks() []*ColumnRanges
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) XXX_DiscardUnknown ¶
func (m *File) XXX_DiscardUnknown()
func (*File) XXX_Unmarshal ¶
type GerritPatch ¶
type GerritPatch struct { // Hostname of the Gerrit server, e.g. chromium-review.googlesource.com. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // The id of the CL, e.g. 1296501. Cl int32 `protobuf:"varint,2,opt,name=cl,proto3" json:"cl,omitempty"` // The id of the patch in the CL, e.g. 43. Patch int32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"` // Project name of the CL, e.g. chromium/src. // Optional, since the cl number is unique in a Gerrit server. Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents a patch of a CL in a Gerrit project.
func (*GerritPatch) Descriptor ¶
func (*GerritPatch) Descriptor() ([]byte, []int)
func (*GerritPatch) GetCl ¶
func (m *GerritPatch) GetCl() int32
func (*GerritPatch) GetHost ¶
func (m *GerritPatch) GetHost() string
func (*GerritPatch) GetPatch ¶
func (m *GerritPatch) GetPatch() int32
func (*GerritPatch) GetProject ¶
func (m *GerritPatch) GetProject() string
func (*GerritPatch) ProtoMessage ¶
func (*GerritPatch) ProtoMessage()
func (*GerritPatch) Reset ¶
func (m *GerritPatch) Reset()
func (*GerritPatch) String ¶
func (m *GerritPatch) String() string
func (*GerritPatch) XXX_DiscardUnknown ¶
func (m *GerritPatch) XXX_DiscardUnknown()
func (*GerritPatch) XXX_Marshal ¶
func (m *GerritPatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GerritPatch) XXX_Merge ¶
func (m *GerritPatch) XXX_Merge(src proto.Message)
func (*GerritPatch) XXX_Size ¶
func (m *GerritPatch) XXX_Size() int
func (*GerritPatch) XXX_Unmarshal ¶
func (m *GerritPatch) XXX_Unmarshal(b []byte) error
type GitilesCommit ¶
type GitilesCommit struct { // Hostname of the Gitiles server, e.g. chromium.googlesource.com. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // Project name in the Gitiles, e.g. chromium/src. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // The git hash of the commit in Gitiles, e.g. // fc7b1de555d4b1fe5b7ff2e4c99662a10cf4ddd6. Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` // The commit position of the commit in Gitiles, e.g. 606065. // since not every repository has commit position. CommitPosition int32 `protobuf:"varint,4,opt,name=commit_position,json=commitPosition,proto3" json:"commit_position,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents a commit in a Gitiles repository.
func (*GitilesCommit) Descriptor ¶
func (*GitilesCommit) Descriptor() ([]byte, []int)
func (*GitilesCommit) GetCommitPosition ¶
func (m *GitilesCommit) GetCommitPosition() int32
func (*GitilesCommit) GetHost ¶
func (m *GitilesCommit) GetHost() string
func (*GitilesCommit) GetProject ¶
func (m *GitilesCommit) GetProject() string
func (*GitilesCommit) GetRevision ¶
func (m *GitilesCommit) GetRevision() string
func (*GitilesCommit) ProtoMessage ¶
func (*GitilesCommit) ProtoMessage()
func (*GitilesCommit) Reset ¶
func (m *GitilesCommit) Reset()
func (*GitilesCommit) String ¶
func (m *GitilesCommit) String() string
func (*GitilesCommit) XXX_DiscardUnknown ¶
func (m *GitilesCommit) XXX_DiscardUnknown()
func (*GitilesCommit) XXX_Marshal ¶
func (m *GitilesCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GitilesCommit) XXX_Merge ¶
func (m *GitilesCommit) XXX_Merge(src proto.Message)
func (*GitilesCommit) XXX_Size ¶
func (m *GitilesCommit) XXX_Size() int
func (*GitilesCommit) XXX_Unmarshal ¶
func (m *GitilesCommit) XXX_Unmarshal(b []byte) error
type GroupCoverageSummary ¶
type GroupCoverageSummary struct { // Two cases: // * The full path of the directory relative to the root of the code base. // For a directory, this should end with a "/", e.g. "//base/". // For the root directory, this should be "//". // * The full path of the crbug component like "Blink>Storage>AppCache". Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // The coverage metrics for its sub directories. Dirs []*CoverageSummary `protobuf:"bytes,2,rep,name=dirs,proto3" json:"dirs,omitempty"` // The coverage metrics for all the files within the directory. Files []*CoverageSummary `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` // Code coverage summary for the group. Summaries []*Metric `protobuf:"bytes,6,rep,name=summaries,proto3" json:"summaries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents the summary metrics for: * A single directory and its immediate children. * All directories mapping to a single crbug component.
func (*GroupCoverageSummary) Descriptor ¶
func (*GroupCoverageSummary) Descriptor() ([]byte, []int)
func (*GroupCoverageSummary) GetDirs ¶
func (m *GroupCoverageSummary) GetDirs() []*CoverageSummary
func (*GroupCoverageSummary) GetFiles ¶
func (m *GroupCoverageSummary) GetFiles() []*CoverageSummary
func (*GroupCoverageSummary) GetPath ¶
func (m *GroupCoverageSummary) GetPath() string
func (*GroupCoverageSummary) GetSummaries ¶
func (m *GroupCoverageSummary) GetSummaries() []*Metric
func (*GroupCoverageSummary) ProtoMessage ¶
func (*GroupCoverageSummary) ProtoMessage()
func (*GroupCoverageSummary) Reset ¶
func (m *GroupCoverageSummary) Reset()
func (*GroupCoverageSummary) String ¶
func (m *GroupCoverageSummary) String() string
func (*GroupCoverageSummary) XXX_DiscardUnknown ¶
func (m *GroupCoverageSummary) XXX_DiscardUnknown()
func (*GroupCoverageSummary) XXX_Marshal ¶
func (m *GroupCoverageSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GroupCoverageSummary) XXX_Merge ¶
func (m *GroupCoverageSummary) XXX_Merge(src proto.Message)
func (*GroupCoverageSummary) XXX_Size ¶
func (m *GroupCoverageSummary) XXX_Size() int
func (*GroupCoverageSummary) XXX_Unmarshal ¶
func (m *GroupCoverageSummary) XXX_Unmarshal(b []byte) error
type LineRange ¶
type LineRange struct { // The first line in the range. Inclusive. First int32 `protobuf:"varint,1,opt,name=first,proto3" json:"first,omitempty"` // The last line in the range. Inclusive. // If not set, it is the same as `first` above. Last int32 `protobuf:"varint,2,opt,name=last,proto3" json:"last,omitempty"` // Meaning of values: // * positive: the lines are covered. // * zero: the lines are instrumented but not covered by tests. // * negative: if the lines are uncoverable or uninstrumented // // If the coverage tool doesn't support counting how many times a line was // executed, the value could only be 1 or 0; otherwise the value could be // larger than 1. If the values are the exactly the same for a few consecutive // lines, they could be merged into one bigger line range. // For example, four small ranges in the middle are merged into a bigger one. // |line number|actual count| // |28 |1 | ---> LineRange(?, 28, 1) // |29 |10 | ---> LineRange(29, 32, 10) // |30 |10 | // |31 |10 | // |32 |10 | // |33 |1 | ---> LineRange(33, ?, 1) // // TODO(crbug.com/925886): As of Jan 28th, 2019, there could be negative // |count| in the metadata. Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents the code coverage for multiple full lines in the file.
func (*LineRange) Descriptor ¶
func (*LineRange) ProtoMessage ¶
func (*LineRange) ProtoMessage()
func (*LineRange) XXX_DiscardUnknown ¶
func (m *LineRange) XXX_DiscardUnknown()
func (*LineRange) XXX_Marshal ¶
func (*LineRange) XXX_Unmarshal ¶
type Metric ¶
type Metric struct { // The name of the metric, e.g. "line", "function", "region", etc. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The total number of coverable ones. Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // The number of covered ones. Covered int32 `protobuf:"varint,3,opt,name=covered,proto3" json:"covered,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents a code coverage metric of a file or a directory.
func (*Metric) Descriptor ¶
func (*Metric) GetCovered ¶
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) XXX_DiscardUnknown ¶
func (m *Metric) XXX_DiscardUnknown()