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

Function TestLoadBytes_custom

echotest/reader_external_test.go:20–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18}
19
20func TestLoadBytes_custom(t *testing.T) {
21 data := echotest.LoadBytes(t, "testdata/test.json", func(bytes []byte) []byte {
22 return []byte(strings.ToUpper(string(bytes)))
23 })
24 assert.Equal(t, []byte(strings.ToUpper(testJSONContent)+"\n"), data)
25}

Callers

nothing calls this directly

Calls 1

LoadBytesFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…