Documentation ¶
Overview ¶
Package analysis provides a client for interacting with LUCI Analysis, and providing fake data for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UseFakeClient ¶
func UseFakeClient(ctx context.Context, client *FakeTestVariantBranchesClient) context.Context
Types ¶
type FakeTestVariantBranchesClient ¶
type FakeTestVariantBranchesClient struct { TestVariantBranches []*pb.TestVariantBranch BatchGetErr error }
func (*FakeTestVariantBranchesClient) BatchGet ¶
func (c *FakeTestVariantBranchesClient) BatchGet(ctx context.Context, req *pb.BatchGetTestVariantBranchRequest, opts ...grpc.CallOption) (*pb.BatchGetTestVariantBranchResponse, error)
type TestVariantBranchesClient ¶
type TestVariantBranchesClient struct {
// contains filtered or unexported fields
}
TestVariantBranchesClient is the client to communicate with LUCI Analysis Test Variant Branches service.
func NewTestVariantBranchesClient ¶
func NewTestVariantBranchesClient(ctx context.Context, host, project string) (*TestVariantBranchesClient, error)
NewTestVariantBranchesClient creates a client to communicate with the LUCI Analysis Test Variant Branches service, acting as the given project.
func (*TestVariantBranchesClient) BatchGet ¶
func (c *TestVariantBranchesClient) BatchGet(ctx context.Context, req *analysispb.BatchGetTestVariantBranchRequest) (res *analysispb.BatchGetTestVariantBranchResponse, err error)
BatchGet retrieves the a list of test variant branches and their segments.
Click to show internal directories.
Click to hide internal directories.