style: gofmt 7 test files
This commit is contained in:
@@ -19,7 +19,7 @@ func (f fakeModule) Plan(context.Context, module.State) (module.Plan, error) {
|
||||
return module.Plan{}, nil
|
||||
}
|
||||
func (f fakeModule) Apply(context.Context, module.Plan, module.Reporter) error { return nil }
|
||||
func (f fakeModule) Verify(context.Context) error { return nil }
|
||||
func (f fakeModule) Verify(context.Context) error { return nil }
|
||||
|
||||
func TestNewWizardStatePreTicksAllByDefault(t *testing.T) {
|
||||
reg := module.NewRegistry()
|
||||
@@ -71,4 +71,3 @@ func TestSelectedIDsOnlyReturnsChecked(t *testing.T) {
|
||||
t.Fatalf("got %v", got)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,14 +45,14 @@ func TestRenderPlanEmpty(t *testing.T) {
|
||||
|
||||
func TestParseIntClamp(t *testing.T) {
|
||||
cases := map[string]int{
|
||||
"": 1,
|
||||
" ": 1,
|
||||
"abc": 1,
|
||||
"3abc": 1, // partial match is rejected (strconv.Atoi, not Sscanf)
|
||||
"0": 1,
|
||||
"-5": 1,
|
||||
"3": 3,
|
||||
"12": 12,
|
||||
"": 1,
|
||||
" ": 1,
|
||||
"abc": 1,
|
||||
"3abc": 1, // partial match is rejected (strconv.Atoi, not Sscanf)
|
||||
"0": 1,
|
||||
"-5": 1,
|
||||
"3": 3,
|
||||
"12": 12,
|
||||
"99999999999999999999": 1, // overflow → fallback
|
||||
}
|
||||
for in, want := range cases {
|
||||
|
||||
Reference in New Issue
Block a user