summaryrefslogtreecommitdiff
path: root/internal/hexaiaction/custom_exec_more_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-16 03:55:40 +0200
committerPaul Buetow <paul@buetow.org>2026-03-16 03:55:40 +0200
commit35f1097f473e51be82f68e93ea2db48dd1c98519 (patch)
tree1b0a316caa9bbbbfab20b6665b424f356f411ac2 /internal/hexaiaction/custom_exec_more_test.go
parent93dfe3798e03e74766b229418cde364a5ef29ae9 (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/custom_exec_more_test.go')
-rw-r--r--internal/hexaiaction/custom_exec_more_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/hexaiaction/custom_exec_more_test.go b/internal/hexaiaction/custom_exec_more_test.go
index 28bbb97..d826b39 100644
--- a/internal/hexaiaction/custom_exec_more_test.go
+++ b/internal/hexaiaction/custom_exec_more_test.go
@@ -22,7 +22,7 @@ func TestExecuteAction_Custom_DoesNotMutateProvidedSelection(t *testing.T) {
cfg := appconfig.Load(nil)
parts := InputParts{Selection: "code"}
selectedCustom := &appconfig.CustomAction{ID: "x", Title: "X", Instruction: "Do it"}
- _, _ = executeAction(context.Background(), ActionCustom, parts, cfg, fakeDoer{"OK"}, nil, selectedCustom)
+ _, _ = executeAction(context.Background(), ActionCustom, parts, &cfg, fakeDoer{"OK"}, nil, selectedCustom)
if selectedCustom == nil {
t.Fatalf("expected provided selectedCustom to remain local state")
}
@@ -33,7 +33,7 @@ func TestRunCustom_UserTemplate_InjectsDiagnostics(t *testing.T) {
parts := InputParts{Selection: "code", Diagnostics: []string{"L1", "L2"}}
ca := appconfig.CustomAction{ID: "y", Title: "Y", User: "{{diagnostics}}\n{{selection}}"}
cap := &capDoer{}
- _, err := runCustom(context.Background(), cfg, cap, ca, parts)
+ _, err := runCustom(context.Background(), &cfg, cap, ca, parts)
if err != nil {
t.Fatalf("runCustom error: %v", err)
}