reportdb

package
v2.3.0-beta21 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package reportdb provides functionality for managing test reports in a database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestReport

type TestReport struct {
	Logger *zap.Logger
	Path   string
	Name   string
	// contains filtered or unexported fields
}

func New

func New(logger *zap.Logger, reportPath string) *TestReport

func (*TestReport) GetAllTestRunIDs

func (fe *TestReport) GetAllTestRunIDs(ctx context.Context) ([]string, error)

func (*TestReport) GetReport

func (fe *TestReport) GetReport(ctx context.Context, testRunID string, testSetID string) (*models.TestReport, error)

func (*TestReport) GetTestCaseResults

func (fe *TestReport) GetTestCaseResults(_ context.Context, testRunID string, testSetID string) ([]models.TestResult, error)

func (*TestReport) InsertReport

func (fe *TestReport) InsertReport(ctx context.Context, testRunID string, testSetID string, testReport *models.TestReport) error

func (*TestReport) InsertTestCaseResult

func (fe *TestReport) InsertTestCaseResult(_ context.Context, testRunID string, testSetID string, result *models.TestResult) error

func (*TestReport) UpdateReport

func (fe *TestReport) UpdateReport(ctx context.Context, testRunID string, coverageReport any) error

Jump to

Keyboard shortcuts

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