MCPcopy
hub / github.com/syncthing/syncthing / createFiles

Function createFiles

test/reset_test.go:143–155  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

141}
142
143func createFiles(t *testing.T) int {
144 // Create a few files
145
146 const n = 8
147 for i := 0; i < n; i++ {
148 file := fmt.Sprintf("f%d", i)
149 if err := os.WriteFile(filepath.Join("s1", file), []byte("data"), 0o644); err != nil {
150 t.Fatal(err)
151 }
152 }
153
154 return n
155}

Callers 1

TestResetFunction · 0.85

Calls 1

FatalMethod · 0.80

Tested by

no test coverage detected