rclone: github.com/ncw/rclone/cmd/serve/servetest Index | Files

package servetest

import "github.com/ncw/rclone/cmd/serve/servetest"

Package servetest provides infrastructure for running loopback tests of "rclone serve backend:" against the backend integration tests.

Index

Package Files

servetest.go

func Run Uses

func Run(t *testing.T, name string, start StartFn)

Run runs the server then runs the unit tests for the remote against it.

type StartFn Uses

type StartFn func(f fs.Fs) (configmap.Simple, func())

StartFn describes the callback which should start the server with the Fs passed in. It should return a config for the backend used to connect to the server and a clean up function

Package servetest imports 13 packages (graph). Updated 2020-08-03. Refresh now. Tools for package owners.