syncertest

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package syncertest is the conformance suite of syncer.Syncer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, newWorld func(t *testing.T) World)

Types

type World

type World interface {
	// Syncer returns an instance with an empty clone cache over the same stores. Every instance sees the same refs.
	Syncer() syncer.Syncer
	SourceURL() string
	RemoteURL() string
	// Commit makes a commit with the parents and returns it. A new commit adds ObjectsPerCommit objects.
	Commit(parents ...string) string
	ObjectsPerCommit() int
	// Publish makes the commit and its history reachable at ref of the store at url, without a lease.
	Publish(url, ref, commit string)
	Refs(url string) map[string]string
	// BreakRemote makes every later push to the remote fail as a whole.
	BreakRemote()
}

World is the stores that a Syncer talks to: a source of commits, a remote, and a place that makes commits.

Jump to

Keyboard shortcuts

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