MCPcopy Create free account
hub / github.com/BishopFox/cloudfox / MockFileSystem

Function MockFileSystem

internal/output.go:201–211  ·  view source on GitHub ↗
(switcher bool)

Source from the content-addressed store, hash-verified

199}
200
201func MockFileSystem(switcher bool) afero.Fs {
202 if switcher {
203 fmt.Println("Using mocked file system")
204 fileSystem = afero.NewMemMapFs()
205 return fileSystem
206 } else {
207 fmt.Println("Using OS file system. Make sure to clean up your disk!")
208 fileSystem = afero.NewOsFs()
209 return fileSystem
210 }
211}

Callers 15

TestAzRBACCommandFunction · 0.92
TestAzVMsCommandFunction · 0.92
TestAzInventoryPoCFunction · 0.92
TestAzWhoamiCommandFunction · 0.92
TestAzStorageCommandFunction · 0.92
TestCloudFormationFunction · 0.92
TestECSTasksFunction · 0.92
TestListBucketsFunction · 0.92
TestSNSQueuesFunction · 0.92
TestEksFunction · 0.92
TestTagsFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestAzRBACCommandFunction · 0.74
TestAzVMsCommandFunction · 0.74
TestAzInventoryPoCFunction · 0.74
TestAzWhoamiCommandFunction · 0.74
TestAzStorageCommandFunction · 0.74
TestCloudFormationFunction · 0.74
TestECSTasksFunction · 0.74
TestListBucketsFunction · 0.74
TestSNSQueuesFunction · 0.74
TestEksFunction · 0.74
TestTagsFunction · 0.74