MCPcopy
hub / github.com/rclone/rclone / checkFile

Function checkFile

cmd/touch/touch_test.go:17–22  ·  view source on GitHub ↗
(t *testing.T, r fs.Fs, path string, content string)

Source from the content-addressed store, hash-verified

15)
16
17func checkFile(t *testing.T, r fs.Fs, path string, content string) {
18 timeAtrFromFlags, err := timeOfTouch()
19 require.NoError(t, err)
20 file1 := fstest.NewItem(path, content, timeAtrFromFlags)
21 fstest.CheckItems(t, r, file1)
22}
23
24// TestMain drives the tests
25func TestMain(m *testing.M) {

Calls 3

NewItemFunction · 0.92
CheckItemsFunction · 0.92
timeOfTouchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…