| 1 | //go:build !darwin |
| 2 | |
| 3 | package dnsscip-go gomod github.com/miekg/dns . `github.com/miekg/dns`/ |
| 4 | |
| 5 | import ( |
| 6 | "path/filepathscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/" |
| 7 | "testingscip-go gomod github.com/golang/go/src go1.25.0 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 tempFilescip-go gomod github.com/miekg/dns . `github.com/miekg/dns`/tempFile().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#, filename string) string { |
| 13 | t.Helperscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Helper().() |
| 14 | |
| 15 | return filepathscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/.Joinscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/Join().(t.TempDirscip-go gomod github.com/golang/go/src go1.25.0 testing/common#TempDir().(), filename) |
| 16 | } |