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

Function writeTestFile

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected