| 1 | //go:build !darwin |
| 2 | |
| 3 | package dns |
| 4 | |
| 5 | import ( |
| 6 | "path/filepath" |
| 7 | "testing" |
| 8 | ) |
| 9 | |
| 10 | // tempDir creates a temporary directory for tests and returns a file path as |
| 11 | // a result of concatenation of said temporary directory path and provided filename. |
| 12 | func tempFile(t *testing.T, filename string) string { |
| 13 | t.Helper() |
| 14 | |
| 15 | return filepath.Join(t.TempDir(), filename) |
| 16 | } |