Documentation
¶
Overview ¶
Package tastrpc provides the Tast related RPC services by cros-test.
Index ¶
- type ReportsServer
- func (s *ReportsServer) Address() string
- func (s *ReportsServer) Errors() []error
- func (s *ReportsServer) LogStream(stream protocol.Reports_LogStreamServer) error
- func (s *ReportsServer) MissingTestsReports(reason string) []*api.TestCaseResult
- func (s *ReportsServer) ReportResult(ctx context.Context, req *protocol.ReportResultRequest) (*protocol.ReportResultResponse, error)
- func (s *ReportsServer) Stop()
- func (s *ReportsServer) TestsReports() []*api.TestCaseResult
- func (s *ReportsServer) Warnings() []string
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 ¶
func (s *ReportsServer) ReportResult(ctx context.Context, req *protocol.ReportResultRequest) (*protocol.ReportResultResponse, error)
ReportResult gets a report request from tast and passes on to progress sink.
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.