apitest

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCommitsPersisted

func AssertCommitsPersisted(t *testing.T, db objects.Store, commits [][]byte)

func CopyCommitsToNewStore

func CopyCommitsToNewStore(t *testing.T, src, dst objects.Store, commits [][]byte)

func CreateRandomCommit

func CreateRandomCommit(t *testing.T, db objects.Store, numCols, numRows int, parents [][]byte) ([]byte, *objects.Commit)

func FetchObjects

func FetchObjects(t *testing.T, db objects.Store, rs ref.Store, c *apiclient.Client, advertised [][]byte, havesPerRoundTrip int) [][]byte

func PushObjects

func PushObjects(t *testing.T, db objects.Store, rs ref.Store, c *apiclient.Client, updates map[string]*payload.Update, remoteRefs map[string][]byte, maxPackfileSize uint64) map[string]*payload.Update

func ReceivePackConfig

func ReceivePackConfig(denyNonFastForwards, denyDeletes bool) *conf.Config

Types

type GZIPAwareHandler added in v0.3.11

type GZIPAwareHandler struct {
	T       *testing.T
	Handler http.Handler
}

func (*GZIPAwareHandler) ServeHTTP added in v0.3.11

func (h *GZIPAwareHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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