Documentation
¶
Index ¶
- func PopulateCode(ctx context.Context, db *sql.DB, pkgDirs []string) error
- func PopulateCoverageResults(ctx context.Context, db *sql.DB, pkgDirs []string) error
- func PopulateTestCoverageResults(ctx context.Context, db *sql.DB, pkgDirs []string, testResults []TestEvent) error
- type CodeLine
- type CoverageResult
- type TestCoverageResult
- type TestEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateCoverageResults ¶
Types ¶
type CoverageResult ¶
type CoverageResult struct {
Package string `json:"package"`
File string `json:"file"`
StartLine int `json:"start_line"`
StartColumn int `json:"start_col"`
EndLine int `json:"end_line"`
EndColumn int `json:"end_col"`
StatementNumber int `json:"stmt_num"`
Count int `json:"count"`
FunctionName string `json:"function_name"`
}
CoverageResult represents the structure of a coverage result
type TestCoverageResult ¶
type TestCoverageResult struct {
TestName string `json:"test_name"`
Package string `json:"package"`
File string `json:"file"`
StartLine int `json:"start_line"`
StartColumn int `json:"start_col"`
EndLine int `json:"end_line"`
EndColumn int `json:"end_col"`
StatementNumber int `json:"stmt_num"`
Count int `json:"count"`
FunctionName string `json:"function_name"`
}
TestCoverageResult represents the structure of a test-specific coverage result
Click to show internal directories.
Click to hide internal directories.