AbsFilePath calls filepath.Abs on path.
(t *testing.T, path string)
| 7 | |
| 8 | // AbsFilePath calls filepath.Abs on path. |
| 9 | func AbsFilePath(t *testing.T, path string) string { |
| 10 | t.Helper() |
| 11 | |
| 12 | s, err := filepath.Abs(path) |
| 13 | if err != nil { |
| 14 | t.Fatal(err) |
| 15 | } |
| 16 | |
| 17 | return s |
| 18 | } |
no outgoing calls