(key ...string)
| 153 | } |
| 154 | |
| 155 | func (tp *temp) Dir(key ...string) string { |
| 156 | tp.t.Helper() |
| 157 | |
| 158 | pth := filepath.Join(append([]string{tp.tempDir}, key...)...) |
| 159 | err := os.MkdirAll(pth, DirPermissionsDefault) |
| 160 | |
| 161 | assertive.ErrorIsNil( |
| 162 | assertive.WithSilentSuccess(tp.t), |
| 163 | err, |
| 164 | fmt.Sprintf("Creating directory %q must succeed", pth), |
| 165 | ) |
| 166 | |
| 167 | return pth |
| 168 | } |
| 169 | |
| 170 | func (tp *temp) Path(key ...string) string { |
| 171 | tp.t.Helper() |
no test coverage detected