MCPcopy Create free account
hub / github.com/alibaba/open-code-review / writeTestFile

Function writeTestFile

internal/tool/file_read_test.go:14–19  ·  view source on GitHub ↗
(t *testing.T, dir, name, content string)

Source from the content-addressed store, hash-verified

12)
13
14func writeTestFile(t *testing.T, dir, name, content string) {
15 t.Helper()
16 if err := os.WriteFile(filepath.Join(dir, name), []byte(content), 0644); err != nil {
17 t.Fatal(err)
18 }
19}
20
21func TestReadLines_Disk_FullFile(t *testing.T) {
22 dir := t.TempDir()

Calls

no outgoing calls

Tested by

no test coverage detected