(t *testing.T, fs afero.Fs, pluginPath string, folderPath string, mtime time.Time)
| 152 | } |
| 153 | |
| 154 | func addPluginFolder(t *testing.T, fs afero.Fs, pluginPath string, folderPath string, mtime time.Time) { |
| 155 | err := fs.MkdirAll(filepath.Join(cachePath, pluginPath, folderPath), 0o755) |
| 156 | require.NoError(t, err, "can't create plugin folder") |
| 157 | |
| 158 | err = fs.Chtimes(filepath.Join(cachePath, pluginPath, folderPath), now, mtime) |
| 159 | require.NoError(t, err, "can't set times") |
| 160 | } |
| 161 | |
| 162 | func diffFileSystem(t *testing.T, fs afero.Fs) { |
| 163 | actual := dumpFileSystem(t, fs) |
no test coverage detected