MCPcopy Create free account
hub / github.com/google/pprof / TestParseData

Function TestParseData

fuzz/fuzz_test.go:25–44  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23)
24
25func TestParseData(t *testing.T) {
26 if runtime.GOOS == "nacl" {
27 t.Skip("no direct filesystem access on Nacl")
28 }
29
30 const path = "testdata/"
31 files, err := os.ReadDir(path)
32 if err != nil {
33 t.Errorf("Problem reading directory %s : %v", path, err)
34 }
35 for _, f := range files {
36 file := path + f.Name()
37 inbytes, err := os.ReadFile(file)
38 if err != nil {
39 t.Errorf("Problem reading file: %s : %v", file, err)
40 continue
41 }
42 profile.ParseData(inbytes)
43 }
44}

Callers

nothing calls this directly

Calls 2

ParseDataFunction · 0.92
NameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…