MCPcopy
hub / github.com/lima-vm/lima / FuzzLoadYAMLByFilePath

Function FuzzLoadYAMLByFilePath

pkg/store/fuzz_test.go:16–23  ·  view source on GitHub ↗
(f *testing.F)

Source from the content-addressed store, hash-verified

14)
15
16func FuzzLoadYAMLByFilePath(f *testing.F) {
17 f.Fuzz(func(t *testing.T, fileContents []byte) {
18 localFile := filepath.Join(t.TempDir(), "yaml_file.yml")
19 err := os.WriteFile(localFile, fileContents, 0o600)
20 assert.NilError(t, err)
21 _, _ = LoadYAMLByFilePath(t.Context(), localFile)
22 })
23}
24
25func FuzzInspect(f *testing.F) {
26 f.Fuzz(func(t *testing.T, yml, limaVersion []byte) {

Callers

nothing calls this directly

Calls 2

LoadYAMLByFilePathFunction · 0.85
WriteFileMethod · 0.80

Tested by

no test coverage detected