Go stdlib package — testing/fstest. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.MapFS.ReadDir()NeutralMapFS.ReadDir(name string) ([]fs.DirEntry, error)
MapFS.ReadDir function.
.MapFS.ReadFile()NeutralMapFS.ReadFile(name string) ([]byte, error)
MapFS.ReadFile function.
.TestFS()NeutralTestFS(fsys fs.FS, expected string) error
TestFS tests a file system implementation.
| FQN | Field | |
|---|---|---|
| testing/fstest | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # testing/fstest