summaryrefslogtreecommitdiff
path: root/coverage.out
AgeCommit message (Collapse)Author
2026-03-25docs: Existing godoc comments already comprehensive for exported REPL functionsPaul Buetow
Verified all exported functions in repl.go have godoc comments: - NewREPL, Run, executor, defaultExecutor, defaultCompleter, getCommandDescription - RunREPL, getRPNState, runRPN, getHistoryPath, loadHistory, saveHistory - isBuiltinCommand, completer, getRPNState, getRPNState method All godoc comments follow Go conventions with clear descriptions of: - Purpose and behavior - Parameters and return values - Usage context and notes Note: This task was marked complete without changes - the codebase already had comprehensive documentation.
2026-03-25docs: Add comprehensive Go documentation for REPL functionsPaul Buetow
- Enhanced NewREPL documentation with detailed parameter descriptions - Enhanced RunREPL documentation clarifying it's a convenience wrapper - Improved executor documentation explaining backward compatibility and testing usage - Enhanced defaultExecutor documentation with input processing details and panic recovery - Enhanced defaultCompleter documentation with tab-completion behavior details - Enhanced defaultGetCommandDescription documentation with command description details - Improved TTYChecker methods (IsTTY, EnsureTTY) documentation - Improved SignalHandler.Start method documentation All exported and non-exported functions in the REPL package now have comprehensive documentation comments that describe their purpose, parameters, and return values.
2026-03-20refactor: update Operations to use VariableStore interfacePaul Buetow
- Changed Operations.vars from *Variables to VariableStore interface - Changed NewOperations to accept VariableStore interface - Changed RPN.vars from *Variables to VariableStore interface - Changed NewRPN to accept VariableStore interface - Removed type assertions in main.go and repl.go - Added FormatVariables to VariableStore interface - All tests pass, build successful
2026-03-20internal/rpn/rpn.go: fix stack state persistence for ParseAndEvaluatePaul Buetow
- Reset currentStack at start of each ParseAndEvaluate call - This ensures test isolation while allowing incremental operations - Added tests for EvalOperator for incremental RPN evaluation - All tests pass, coverage 79.2% for rpn package
2026-03-20cleanup: remove coverage.outPaul Buetow
2026-03-20cmd/perc: add unit tests with 86% coveragePaul Buetow
- 21 test functions covering version, calc, rpn subcommands - Tests for assignment, percentage calculations, error handling, repl mode - Coverage: runCommand 91.7%, runRPN 100%, printUsage 100%