MCPcopy Create free account
hub / github.com/coder/coder / addPluginFolder

Function addPluginFolder

provisioner/terraform/cleanup_test.go:154–160  ·  view source on GitHub ↗
(t *testing.T, fs afero.Fs, pluginPath string, folderPath string, mtime time.Time)

Source from the content-addressed store, hash-verified

152}
153
154func 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
162func diffFileSystem(t *testing.T, fs afero.Fs) {
163 actual := dumpFileSystem(t, fs)

Callers 1

TestPluginCache_GoldenFunction · 0.85

Calls 1

MkdirAllMethod · 0.80

Tested by

no test coverage detected