MCPcopy Create free account
hub / github.com/BlackVectorOps/semantic_firewall / Stat

Method Stat

internal/cli/cli_test.go:254–259  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

252}
253
254func (p *panickingFileSystem) Stat(name string) (os.FileInfo, error) {
255 if name == p.panicOn {
256 panic("synthetic panic for test")
257 }
258 return p.MockFileSystem.Stat(name)
259}
260
261// TestProcessFilesParallel_PanicSurfacedAsError ensures a panic during
262// per-file analysis is recorded as an ErrorMessage on the FileOutput and

Callers

nothing calls this directly

Calls 1

StatMethod · 0.65

Tested by

no test coverage detected