summaryrefslogtreecommitdiff
path: root/internal/repl/repl_completer_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-23 22:54:29 +0200
committerPaul Buetow <paul@buetow.org>2026-03-23 22:54:29 +0200
commit55b5f40cc1f2d42bc3a277f60a3798742ce29170 (patch)
tree28f88b79792f4ba9f87efc1d341b54cf7b3963d1 /internal/repl/repl_completer_test.go
parent833f7c17e67e4b2b54e881bd5df05f2e4b07b2ae (diff)
Code quality audit fixes from comprehensive audit
- Error wrapping improvements across multiple files - Thread-safe singleton initialization using sync.Once - Proper error handling for file close operations - Removed speculative complexity in history management - Fixed operator interface design Audit report: COMPLETE_AUDIT_REPORT.md
Diffstat (limited to 'internal/repl/repl_completer_test.go')
-rw-r--r--internal/repl/repl_completer_test.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/internal/repl/repl_completer_test.go b/internal/repl/repl_completer_test.go
index 861256a..1e4a31b 100644
--- a/internal/repl/repl_completer_test.go
+++ b/internal/repl/repl_completer_test.go
@@ -15,29 +15,29 @@ func TestCompleterLogic(t *testing.T) {
text string
match bool
}{
- {"h", "h", true}, // "help"
- {"he", "he", true}, // "help"
+ {"h", "h", true}, // "help"
+ {"he", "he", true}, // "help"
{"hel", "hel", true}, // "help"
{"help", "help", true},
- {"c", "c", true}, // "clear", "calc"
- {"cl", "cl", true}, // "clear"
+ {"c", "c", true}, // "clear", "calc"
+ {"cl", "cl", true}, // "clear"
{"cle", "cle", true}, // "clear"
{"clear", "clear", true},
- {"ca", "ca", true}, // "calc"
+ {"ca", "ca", true}, // "calc"
{"cal", "cal", true}, // "calc"
{"calc", "calc", true},
- {"q", "q", true}, // "quit"
- {"qu", "qu", true}, // "quit"
+ {"q", "q", true}, // "quit"
+ {"qu", "qu", true}, // "quit"
{"qui", "qui", true}, // "quit"
{"quit", "quit", true},
- {"e", "e", true}, // "exit"
- {"ex", "ex", true}, // "exit"
+ {"e", "e", true}, // "exit"
+ {"ex", "ex", true}, // "exit"
{"exi", "exi", true}, // "exit"
{"exit", "exit", true},
{"r", "r", true}, // "rpn"
{"rp", "rp", true}, // "rpn"
{"rpn", "rpn", true},
- {"x", "x", false}, // no match
+ {"x", "x", false}, // no match
{"xyz", "xyz", false}, // no match
}