tastrpc

package
v0.0.0-...-19f3ddf Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package tastrpc provides the Tast related RPC services by cros-test.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReportsServer

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

ReportsServer implements the tast.framework.protocol.ReportsServer.

func NewReportsServer

func NewReportsServer(port int, tests []string, testNamesToIds map[string]string, testNamesToMetadata map[string]*api.TestCaseMetadata, resultDir string) (*ReportsServer, error)

NewReportsServer starts a Reports gRPC service and returns a ReportsServer object when success. The caller is responsible for calling Stop() method.

func (*ReportsServer) Address

func (s *ReportsServer) Address() string

Address returns the network address of the ReportsServer.

func (*ReportsServer) Errors

func (s *ReportsServer) Errors() []error

Errors returns errors encountered during test reporting.

func (*ReportsServer) LogStream

func (s *ReportsServer) LogStream(stream protocol.Reports_LogStreamServer) error

LogStream gets logs from tast and passes on to progress sink server.

func (*ReportsServer) MissingTestsReports

func (s *ReportsServer) MissingTestsReports(reason string) []*api.TestCaseResult

MissingTestsReports return error results to all tests that have not reported results.

func (*ReportsServer) ReportResult

ReportResult gets a report request from tast and passes on to progress sink.

func (*ReportsServer) Stop

func (s *ReportsServer) Stop()

Stop stops the ReportsServer.

func (*ReportsServer) TestsReports

func (s *ReportsServer) TestsReports() []*api.TestCaseResult

TestsReports returns results to all tests that have reported results.

func (*ReportsServer) Warnings

func (s *ReportsServer) Warnings() []string

Warnings returns warnings encountered during test reporting.

Jump to

Keyboard shortcuts

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