MCPcopy Index your code
hub / github.com/imroc/req / getTestFileContent

Function getTestFileContent

req_test.go:72–76  ·  view source on GitHub ↗
(t *testing.T, filename string)

Source from the content-addressed store, hash-verified

70}
71
72func getTestFileContent(t *testing.T, filename string) []byte {
73 b, err := os.ReadFile(tests.GetTestFilePath(filename))
74 tests.AssertNoError(t, err)
75 return b
76}
77
78func assertClone(t *testing.T, e, g any) {
79 ev := reflect.ValueOf(e).Elem()

Callers 7

TestSetOutputDirectoryFunction · 0.85
TestEnableDumpAllToFileFunction · 0.85
TestEnableDumpToFIleFunction · 0.85
TestSetFileFunction · 0.85
TestSetFilesFunction · 0.85

Calls 2

GetTestFilePathFunction · 0.92
AssertNoErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…