diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-23 22:30:42 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-23 22:30:42 +0200 |
| commit | 6eaa71ba0d7c0b56853860c2f1eb43096dd928e7 (patch) | |
| tree | f328cb2bc31dca6524d8bf78c6c4e43d1ffb3cb0 /internal/repl/repl_completer_test.go | |
| parent | bd4750a4094ba8c6cddb6559e4599df2c068ced9 (diff) | |
Replace global variable with function in internal/repl
Diffstat (limited to 'internal/repl/repl_completer_test.go')
| -rw-r--r-- | internal/repl/repl_completer_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/repl/repl_completer_test.go b/internal/repl/repl_completer_test.go index 997d303..861256a 100644 --- a/internal/repl/repl_completer_test.go +++ b/internal/repl/repl_completer_test.go @@ -45,7 +45,7 @@ func TestCompleterLogic(t *testing.T) { t.Run(tc.name, func(t *testing.T) { // Simulate the completer logic var found bool - for _, cmd := range builtinCommands { + for _, cmd := range builtinCommands() { if strings.HasPrefix(strings.ToLower(cmd), strings.ToLower(tc.text)) { found = true break |
