coveragestore

package
v0.0.0-...-bc12874 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoverageRequest

type CoverageRequest struct {
	ID int `sql:"id INT PRIMARY KEY DEFAULT unique_rowid()"`

	// The relative file path and filename of source file.
	FileName int `sql:"file_name STRING"`

	// An Builder serialized as JSON that includes test suites.
	Builder string `sql:"builder TEXT"`

	// Stored as a Unit timestamp.
	LastModified int `sql:"last_modified INT"`
}

CoverageSchema represents the SQL schema of the Coverage table.

type Store

type Store interface {
	// Add will insert a new file with associated builder information.
	Add(ctx context.Context, req *pb.CoverageChangeRequest) error

	// Delete removes the Filename with the given filename.
	Delete(ctx context.Context, req *pb.CoverageChangeRequest) error

	// List retrieves all the Coverage mapppings.
	List(ctx context.Context, req *pb.CoverageListRequest) ([]string, error)

	// List retrieves all the Coverage mapppings.
	ListAll(ctx context.Context, req *pb.CoverageRequest) ([]*pb.CoverageResponse, error)
}

Store is the interface used to persist Coverage.

Directories

Path Synopsis
tosql
This executable generates a go file that contains the SQL schema for machineserver defined as a string.
This executable generates a go file that contains the SQL schema for machineserver defined as a string.

Jump to

Keyboard shortcuts

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