(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestParseAbsolutePath(t *testing.T) { |
| 15 | t.Parallel() |
| 16 | |
| 17 | absolutePath, err := safepaths.ParseAbsolute("/base") |
| 18 | require.NoError(t, err) |
| 19 | |
| 20 | require.Equal(t, filepath.Join(rootDir(), "base"), absolutePath.String()) |
| 21 | } |
| 22 | |
| 23 | func TestAbsoluteEmptyPathStringPanic(t *testing.T) { |
| 24 | t.Parallel() |
nothing calls this directly
no test coverage detected