mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-22 05:40:51 +01:00
Refactor error message in mode_test.go
The error message format in `ModesFromFlags()` method within `mode_test.go` has been refactored. The refactoring improved the clarity and conciseness of error reporting when the expected mode is not found during test execution.
This commit is contained in:
parent
72576961e6
commit
1c22c9b8f0
1 changed files with 1 additions and 2 deletions
|
@ -84,8 +84,7 @@ func TestModesFromFlags(t *testing.T) {
|
|||
mm := ModesFromFlags(tc.ms)
|
||||
for _, tm := range tc.mode {
|
||||
if !MaskHasMode(mm, tm) {
|
||||
t.Errorf("ModesFromFlags() failed, expected mode %q not found",
|
||||
tm)
|
||||
t.Errorf("ModesFromFlags() failed, expected mode %q not found", tm)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue