You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: improve whitespace validation and add comprehensive test coverage
Address feedback from @gemini-code-assist[bot] review:
1. Enhanced validation in parseStringArgs():
- Use strings.TrimSpace() to reject arguments consisting solely of whitespace
- Prevents creating nodes with whitespace-only paths
- Maintains preservation of intentional whitespace in valid arguments
2. Added comprehensive test cases for whitespace handling:
- Whitespace-only arguments (should be rejected)
- Multiple empty string arguments (should be rejected)
- Arguments with leading/trailing spaces (should be preserved)
- Mixed whitespace scenarios
This improves robustness while maintaining backward compatibility and
the core functionality of handling unquoted paths with spaces.
0 commit comments