Documentation
¶
Overview ¶
Package tracetest holds what a trace backend proves itself with.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BodyStoreConformance ¶
BodyStoreConformance is the one test every BodyStore runs: an in-memory store here, an S3 stub in a backend's tests, and the real object store when its credentials are present. It is the proof that the bytes a spool wrote are the bytes a range reads back, and that each member stands alone.
key is where the test object goes; the caller cleans up.
Types ¶
type MemBodyStore ¶
type MemBodyStore struct {
// contains filtered or unexported fields
}
MemBodyStore is a BodyStore in memory, for tests.
func (*MemBodyStore) PutBodies ¶
func (m *MemBodyStore) PutBodies(_ context.Context, key string, r io.ReadSeeker, size int64) error
PutBodies keeps a copy of the bytes.