From 55b5f40cc1f2d42bc3a277f60a3798742ce29170 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 23 Mar 2026 22:54:29 +0200 Subject: 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 --- internal/repl/repl_completer_test.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'internal/repl/repl_completer_test.go') 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 } -- cgit v1.2.3