(t *testing.T, name string, fs fs.Filesystem)
| 99 | } |
| 100 | |
| 101 | func createEmptyFileInfo(t *testing.T, name string, fs fs.Filesystem) protocol.FileInfo { |
| 102 | t.Helper() |
| 103 | |
| 104 | writeFile(t, fs, name, nil) |
| 105 | fi, err := fs.Stat(name) |
| 106 | must(t, err) |
| 107 | file, err := scanner.CreateFileInfo(fi, name, fs, false, false, config.XattrFilter{}) |
| 108 | must(t, err) |
| 109 | return file |
| 110 | } |
| 111 | |
| 112 | // Sets up a folder and model, but makes sure the services aren't actually running. |
| 113 | func setupSendReceiveFolder(t testing.TB, files ...protocol.FileInfo) (*testModel, *sendReceiveFolder) { |
no test coverage detected