diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-16 03:55:40 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-16 03:55:40 +0200 |
| commit | 35f1097f473e51be82f68e93ea2db48dd1c98519 (patch) | |
| tree | 1b0a316caa9bbbbfab20b6665b424f356f411ac2 /internal/hexaiaction/run_more_test.go | |
| parent | 93dfe3798e03e74766b229418cde364a5ef29ae9 (diff) | |
Fix mixed pointer/value receivers on appconfig.App
Change all value receivers on App to pointer receivers for consistency.
Update callers that pass App values to pass pointers where needed for
the actionConfig interface.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/hexaiaction/run_more_test.go')
| -rw-r--r-- | internal/hexaiaction/run_more_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/hexaiaction/run_more_test.go b/internal/hexaiaction/run_more_test.go index 0e391ed..6a4959e 100644 --- a/internal/hexaiaction/run_more_test.go +++ b/internal/hexaiaction/run_more_test.go @@ -46,7 +46,7 @@ func TestHandleDiagnosticsActionInvokesLLM(t *testing.T) { parts := InputParts{Diagnostics: []string{"warn1"}, Selection: "code"} client := &stubChatDoer{} cfg := appconfig.Load(nil) - if _, err := handleDiagnosticsAction(context.Background(), parts, cfg, client); err != nil { + if _, err := handleDiagnosticsAction(context.Background(), parts, &cfg, client); err != nil { t.Fatalf("handleDiagnosticsAction: %v", err) } if client.calls != 1 { @@ -68,7 +68,7 @@ func TestHandleSimplifyActionPassesSelection(t *testing.T) { parts := InputParts{Selection: "value := 1"} client := &stubChatDoer{} cfg := appconfig.Load(nil) - if _, err := handleSimplifyAction(context.Background(), parts, cfg, client); err != nil { + if _, err := handleSimplifyAction(context.Background(), parts, &cfg, client); err != nil { t.Fatalf("handleSimplifyAction: %v", err) } if client.calls != 1 { @@ -91,7 +91,7 @@ func TestHandleCustomActionUsesProvidedCustom(t *testing.T) { parts := InputParts{Selection: "text"} client := &stubChatDoer{} cfg := appconfig.Load(nil) - if _, err := handleCustomAction(context.Background(), parts, cfg, client, &sel); err != nil { + if _, err := handleCustomAction(context.Background(), parts, &cfg, client, &sel); err != nil { t.Fatalf("handleCustomAction: %v", err) } if client.calls != 1 { |
