MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestReadFile

Function TestReadFile

testutil/helpers_test.go:49–56  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func TestReadFile(t *testing.T) {
50 dir := t.TempDir()
51 path := filepath.Join(dir, "test.txt")
52 require.NoError(t, os.WriteFile(path, []byte("hello world"), 0644))
53
54 result := ReadFile(t, path)
55 assert.Equal(t, "hello world", result)
56}

Callers

nothing calls this directly

Calls 1

ReadFileFunction · 0.70

Tested by

no test coverage detected