go/src/cmd/vendor/golang.org/x/mod/sumdb/test.go

// NewTestServer constructs a new [TestServer]
// that will sign its tree with the given signer key
// (see [golang.org/x/mod/sumdb/note])
// and fetch new records as needed by calling gosum.
func NewTestServer(signer string, gosum func(path, vers string) ([]byte, error)) *TestServer {}

type TestServer

type testHashes

func (h testHashes) ReadHashes(indexes []int64) ([]tlog.Hash, error) {}

func (s *TestServer) Signed(ctx context.Context) ([]byte, error) {}

func (s *TestServer) ReadRecords(ctx context.Context, id, n int64) ([][]byte, error) {}

func (s *TestServer) Lookup(ctx context.Context, m module.Version) (int64, error) {}

func (s *TestServer) ReadTileData(ctx context.Context, t tlog.Tile) ([]byte, error) {}