mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-03-10 07:59:13 +00:00
feat: go 1.25.5, dependency updates, renamed internal/errors (#129)
* feat: rename internal/errors to internal/apperrors * fix(tests): clear env values before using in tests * feat: rename internal/errors to internal/apperrors * chore(deps): update go and all dependencies * chore: remove renovate from pre-commit, formatting * chore: sonarcloud fixes * feat: consolidate constants to appconstants/constants.go * chore: sonarcloud fixes * feat: simplification, deduplication, test utils * chore: sonarcloud fixes * chore: sonarcloud fixes * chore: sonarcloud fixes * chore: sonarcloud fixes * chore: clean up * fix: config discovery, const deduplication * chore: fixes
This commit is contained in:
@@ -61,23 +61,9 @@ func TestMustReadFixture_Panic(t *testing.T) {
|
||||
t.Parallel()
|
||||
t.Run("missing file panics", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
defer func() {
|
||||
if r := recover(); r == nil {
|
||||
t.Error("expected panic but got none")
|
||||
} else {
|
||||
errStr, ok := r.(string)
|
||||
if !ok {
|
||||
t.Errorf("expected panic to contain string message, got: %T", r)
|
||||
|
||||
return
|
||||
}
|
||||
if !strings.Contains(errStr, "failed to read fixture") {
|
||||
t.Errorf("expected panic message about fixture reading, got: %v", r)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
mustReadFixture("nonexistent-file.yml")
|
||||
ExpectPanic(t, func() {
|
||||
mustReadFixture("nonexistent-file.yml")
|
||||
}, "failed to read fixture")
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user