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

Function writeTestFile

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected