testsupport

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*ingestion.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(endpoint, token string) *Client

func (*Client) Submit

func (client *Client) Submit(ctx context.Context, input ingestion.Request) (Receipt, error)

func (*Client) SubmitTo

func (client *Client) SubmitTo(ctx context.Context, input ingestion.Request, state string) (Receipt, error)

type Receipt

type Receipt struct {
	ingestion.Receipt
	Snapshot review.RepositoryDiff
}

type TestServer

type TestServer struct {
	*httptest.Server
	// contains filtered or unexported fields
}

func Server

func Server(t *testing.T, service *contextservice.Service, store *reviewstore.Store) *TestServer

Server composes an unauthenticated queue and worker for producer integration tests.

func (*TestServer) Close

func (server *TestServer) Close()

Jump to

Keyboard shortcuts

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