MCPcopy
hub / github.com/dosco/graphjin / writeTestFile

Function writeTestFile

serv/codesql_test.go:773–778  ·  view source on GitHub ↗
(t *testing.T, path, text string)

Source from the content-addressed store, hash-verified

771}
772
773func writeTestFile(t *testing.T, path, text string) {
774 t.Helper()
775 if err := os.WriteFile(path, []byte(text), 0o644); err != nil {
776 t.Fatal(err)
777 }
778}
779
780func readTestFile(t *testing.T, path string) string {
781 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected