Function
writeFile
(t *testing.T, dir, name, content string)
Source from the content-addressed store, hash-verified
| 654 | } |
| 655 | |
| 656 | func writeFile(t *testing.T, dir, name, content string) { |
| 657 | t.Helper() |
| 658 | require.NoError(t, os.WriteFile(filepathext.SmartJoin(dir, name), []byte(content), 0o644)) |
| 659 | } |
| 660 | |
| 661 | // gitignoreStep writes a set of files then runs the task once, capturing its |
| 662 | // output as a golden fixture named run. |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…