Documentation
¶
Index ¶
- func AnyRsync(t *testing.T) string
- func CombinedOutput(args ...string) ([]byte, error)
- func CommandMain(m *testing.M) error
- func ConstructLargeDataFile(headPattern, bodyPattern, endPattern []byte) []byte
- func CreateDummyDeviceFiles(t *testing.T, dir string)
- func DataFileMatches(fn string, headPattern, bodyPattern, endPattern []byte) error
- func InteropModule(path string) []rsyncd.Module
- func Output(tb testing.TB, args ...string) (stdout []byte, stderr []byte)
- func RsyncVersion(t *testing.T) string
- func Run(tb testing.TB, args ...string) *rsyncstats.TransferStats
- func TridgeOrGTFO(t *testing.T, reason string) string
- func VerifyDummyDeviceFiles(t *testing.T, source, dest string)
- func WritableInteropModule(path string) []rsyncd.Module
- func WriteLargeDataFile(t *testing.T, source string, headPattern, bodyPattern, endPattern []byte)
- type Option
- type TestServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombinedOutput ¶ added in v0.2.3
func CommandMain ¶ added in v0.2.3
func ConstructLargeDataFile ¶
func CreateDummyDeviceFiles ¶
func DataFileMatches ¶
func InteropModule ¶
InteropModule is a convenience function to define an rsync module named “interop” with the specified path.
func RsyncVersion ¶
func Run ¶ added in v0.2.3
func Run(tb testing.TB, args ...string) *rsyncstats.TransferStats
func VerifyDummyDeviceFiles ¶
func WritableInteropModule ¶ added in v0.2.0
WritableInteropModule is a wrapper around InteropModule that marks the module as writable (not read-only).
Types ¶
type Option ¶
type Option func(ts *TestServer)
func Listeners ¶
func Listeners(lns []rsyncdconfig.Listener) Option
Click to show internal directories.
Click to hide internal directories.