coverage

package
v0.0.0-...-3c039c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package `coverage` contains all the necessary code to serve the new code coverage dashboard for chromium/src.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternalServerError = errors.New("internal server error")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// Refers to findit's cloud project
	FinditCloudProject string
	// Refers to chrome-test-health's cloud project
	ChromeTestHealthCloudProject string
	// contains filtered or unexported fields
}

func (*Client) GetAbsoluteCoverageDataOneYear

GetAbsoluteCoverageDataOneYear returns absolute coverage numbers for the last 365 days.

func (*Client) GetCoverageSummary

GetCoverageSummary fetches the code coverage metrics/percentages for the specified configuration including the path or component list. The path param here can be a dir/file path like //foo/foo1/foo2/. Components param should be be a list of monorail components like ["C1>C2", "C3"] This endpoint accepts either path or component not both.

func (*Client) GetIncrementalCoverageDataOneYear

GetIncrementalCoverageDataOneYear returns incremental coverage numbers for the last 365 days.

func (*Client) GetProjectDefaultConfig

GetProjectDefaultConfig fetches the latest version of FinditConfig from the datastore and returns the desired configuration extracted from the entity.

func (*Client) Init

func (c *Client) Init(ctx context.Context) error

type CoveragePerDate

type CoveragePerDate struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
Package cron contains go functions to assist cron jobs.
Package cron contains go functions to assist cron jobs.
Package `entities` contains go structs for all the entities required to be read from the datastore.
Package `entities` contains go structs for all the entities required to be read from the datastore.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL