MCPcopy Create free account
hub / github.com/algolia/cli / readTestFile

Function readTestFile

internal/docs/mdx_test.go:126–133  ·  view source on GitHub ↗
(t *testing.T, path string)

Source from the content-addressed store, hash-verified

124}
125
126func readTestFile(t *testing.T, path string) string {
127 t.Helper()
128
129 content, err := os.ReadFile(path)
130 require.NoError(t, err)
131
132 return string(content)
133}

Calls 1

HelperMethod · 0.80

Tested by

no test coverage detected