MCPcopy
hub / github.com/syncthing/syncthing / generateFiles

Function generateFiles

test/util.go:44–46  ·  view source on GitHub ↗
(dir string, files, maxexp int, srcname string)

Source from the content-addressed store, hash-verified

42)
43
44func generateFiles(dir string, files, maxexp int, srcname string) error {
45 return generateFilesWithTime(dir, files, maxexp, srcname, time.Now())
46}
47
48func generateFilesWithTime(dir string, files, maxexp int, srcname string, t0 time.Time) error {
49 fd, err := os.Open(srcname)

Callers 13

testSymlinksFunction · 0.70
TestRescanWithDelayFunction · 0.70
testFileTypeChangeFunction · 0.70
TestScanSubdirFunction · 0.70
TestConflictsDefaultFunction · 0.70
TestManyPeersFunction · 0.70
TestRescanInParallelFunction · 0.70
TestOverrideFunction · 0.70
alterFilesFunction · 0.70
TestSyncClusterFunction · 0.70

Calls 2

generateFilesWithTimeFunction · 0.85
NowMethod · 0.65

Tested by 12

testSymlinksFunction · 0.56
TestRescanWithDelayFunction · 0.56
testFileTypeChangeFunction · 0.56
TestScanSubdirFunction · 0.56
TestConflictsDefaultFunction · 0.56
TestManyPeersFunction · 0.56
TestRescanInParallelFunction · 0.56
TestOverrideFunction · 0.56
TestSyncClusterFunction · 0.56
setupAPIBenchFunction · 0.56