(t *testing.T, file string)
| 220 | } |
| 221 | |
| 222 | func makeFileUnwriteable(t *testing.T, file string) { |
| 223 | t.Helper() |
| 224 | |
| 225 | f, err := os.Create(file) |
| 226 | require.NoError(t, err) |
| 227 | f.Close() |
| 228 | |
| 229 | require.NoError(t, os.Chmod(file, 0000)) |
| 230 | } |
| 231 | |
| 232 | func mockMigration(doFunc func(config *ghConfig.Config) error) *ghmock.MigrationMock { |
| 233 | return &ghmock.MigrationMock{ |
no test coverage detected