MCPcopy Index your code
hub / github.com/labstack/echo / loadBytes

Function loadBytes

echotest/reader.go:36–46  ·  view source on GitHub ↗
(t *testing.T, name string, callDepth int)

Source from the content-addressed store, hash-verified

34}
35
36func loadBytes(t *testing.T, name string, callDepth int) []byte {
37 _, b, _, _ := runtime.Caller(callDepth)
38 basepath := filepath.Dir(b)
39
40 path := filepath.Join(basepath, name) // relative path
41 bytes, err := os.ReadFile(path)
42 if err != nil {
43 t.Fatal(err)
44 }
45 return bytes[:]
46}

Callers 1

LoadBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…