(t *testing.T, dir string)
| 189 | } |
| 190 | |
| 191 | func openRoot(t *testing.T, dir string) *os.Root { |
| 192 | t.Helper() |
| 193 | |
| 194 | root, err := os.OpenRoot(dir) |
| 195 | require.NoError(t, err) |
| 196 | t.Cleanup(func() { root.Close() }) |
| 197 | |
| 198 | return root |
| 199 | } |
| 200 | |
| 201 | type noEnvProvider struct{} |
| 202 |
no test coverage detected