From 3d4c8d21607104f562be69e6ff9e569f358d832c Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Mon, 26 Oct 2026 10:08:57 +0100 Subject: [PATCH] style: gofmt the login gate smoke test --- login_gate_smoke_test.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/login_gate_smoke_test.go b/login_gate_smoke_test.go index cb341b5..141657c 100644 --- a/login_gate_smoke_test.go +++ b/login_gate_smoke_test.go @@ -41,9 +41,18 @@ func TestLoginGatesSmoke(t *testing.T) { want := &classes.LoginGateResult{Body: map[string]any{"two_factor_required": true}} calls := 0 g := classes.NewLoginGates() - g.Add(gateFunc(func(context.Context, classes.LoginAttempt) (*classes.LoginGateResult, error) { calls++; return nil, nil })) - g.Add(gateFunc(func(context.Context, classes.LoginAttempt) (*classes.LoginGateResult, error) { calls++; return want, nil })) - g.Add(gateFunc(func(context.Context, classes.LoginAttempt) (*classes.LoginGateResult, error) { calls++; return nil, nil })) + g.Add(gateFunc(func(context.Context, classes.LoginAttempt) (*classes.LoginGateResult, error) { + calls++ + return nil, nil + })) + g.Add(gateFunc(func(context.Context, classes.LoginAttempt) (*classes.LoginGateResult, error) { + calls++ + return want, nil + })) + g.Add(gateFunc(func(context.Context, classes.LoginAttempt) (*classes.LoginGateResult, error) { + calls++ + return nil, nil + })) res, err := g.Check(ctx, classes.LoginAttempt{}) if err != nil || res != want { t.Fatalf("A(nil) then B(result) = %v, %v", res, err)