(t *testing.T, root, relPath, content string)
| 117 | } |
| 118 | |
| 119 | func createDirAndFile(t *testing.T, root, relPath, content string) { |
| 120 | t.Helper() |
| 121 | fullPath := filepath.Join(root, relPath) |
| 122 | if err := os.MkdirAll(filepath.Dir(fullPath), 0o755); err != nil { |
| 123 | t.Fatalf("mkdir: %v", err) |
| 124 | } |
| 125 | if err := os.WriteFile(fullPath, []byte(content), 0o644); err != nil { |
| 126 | t.Fatalf("write: %v", err) |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | func resetContextFlags() { |
| 131 | ctxTaskID = "" |
no outgoing calls
no test coverage detected