Documentation ¶
Overview ¶
Package exporter contains methods to export test results to BigQuery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides methods to export test results to BigQuery via the BigQuery Write API.
func NewClient ¶
NewClient creates a new client for exporting test results via the BigQuery Write API.
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter provides methods to stream test results to BigQuery.
func NewExporter ¶
func NewExporter(client InsertClient) *Exporter
NewExporter instantiates a new Exporter. The given client is used to insert rows into BigQuery.
type FakeClient ¶
type FakeClient struct { // Insertions is the set of test results which were attempted // to be exported using the client. Insertions []*bqpb.TestResultRow }
FakeClient represents a fake implementation of the test results exporter, for testing.
func NewFakeClient ¶
func NewFakeClient() *FakeClient
NewFakeClient initialises a new client for exporting test results.
func (*FakeClient) Insert ¶
func (fc *FakeClient) Insert(ctx context.Context, rows []*bqpb.TestResultRow) error
Insert inserts the given rows.
type InsertClient ¶
type InsertClient interface { // Insert inserts the given rows into BigQuery. Insert(ctx context.Context, rows []*bqpb.TestResultRow) error }
InsertClient defines an interface for inserting rows into BigQuery.