MCPcopy
hub / github.com/rclone/rclone / PutTestContents

Function PutTestContents

fstest/fstests/fstests.go:208–210  ·  view source on GitHub ↗

PutTestContents puts file with given contents to the remote and checks it but unlike TestPutLarge doesn't remove

(ctx context.Context, t *testing.T, f fs.Fs, file *fstest.Item, contents string, check bool)

Source from the content-addressed store, hash-verified

206
207// PutTestContents puts file with given contents to the remote and checks it but unlike TestPutLarge doesn't remove
208func PutTestContents(ctx context.Context, t *testing.T, f fs.Fs, file *fstest.Item, contents string, check bool) fs.Object {
209 return PutTestContentsMetadata(ctx, t, f, file, false, contents, check, "", nil)
210}
211
212// testPut puts file with random contents to the remote
213func testPut(ctx context.Context, t *testing.T, f fs.Fs, file *fstest.Item) (string, fs.Object) {

Callers 15

TestListWithoutMetadataFunction · 0.92
TestInternalReadOnlyMethod · 0.92
TestMoveCopyFunction · 0.92
InternalTestVersionsMethod · 0.92
putFileFunction · 0.92
InternalTestNoHeadMethod · 0.92
InternalTestVersionsMethod · 0.92
testPutFileFunction · 0.92
testSmallFileInternalsFunction · 0.92
testPreventCorruptionFunction · 0.92

Calls 1

PutTestContentsMetadataFunction · 0.85

Tested by 15

TestListWithoutMetadataFunction · 0.74
TestInternalReadOnlyMethod · 0.74
TestMoveCopyFunction · 0.74
InternalTestVersionsMethod · 0.74
putFileFunction · 0.74
InternalTestNoHeadMethod · 0.74
InternalTestVersionsMethod · 0.74
testPutFileFunction · 0.74
testSmallFileInternalsFunction · 0.74
testPreventCorruptionFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…