MCPcopy
hub / github.com/rclone/rclone / NewRun

Function NewRun

fstest/run.go:195–197  ·  view source on GitHub ↗

NewRun initialise the remote and local for testing and returns a run object. Call this from the tests. r.Flocal is an empty local Fs r.Fremote is an empty remote Fs

(t *testing.T)

Source from the content-addressed store, hash-verified

193// r.Flocal is an empty local Fs
194// r.Fremote is an empty remote Fs
195func NewRun(t *testing.T) *Run {
196 return newRunIndividual(t, *Individual)
197}
198
199// NewRunIndividual as per NewRun but makes an individual remote for this test
200func NewRunIndividual(t *testing.T) *Run {

Callers 15

TestRmdirWindowsFunction · 0.92
TestUpdatingCheckFunction · 0.92
TestVerifyCopyFunction · 0.92
TestSymlinkFunction · 0.92
TestHashWithTypeNoneFunction · 0.92
TestHashOnUpdateFunction · 0.92
TestHashOnDeleteFunction · 0.92
TestMetadataFunction · 0.92
TestFilterFunction · 0.92
testFilterSymlinkFunction · 0.92
TestCopySymlinkFunction · 0.92
newTestVFSOptFunction · 0.92

Calls 1

newRunIndividualFunction · 0.85

Tested by 15

TestRmdirWindowsFunction · 0.74
TestUpdatingCheckFunction · 0.74
TestVerifyCopyFunction · 0.74
TestSymlinkFunction · 0.74
TestHashWithTypeNoneFunction · 0.74
TestHashOnUpdateFunction · 0.74
TestHashOnDeleteFunction · 0.74
TestMetadataFunction · 0.74
TestFilterFunction · 0.74
testFilterSymlinkFunction · 0.74
TestCopySymlinkFunction · 0.74
newTestVFSOptFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…