Commit 79ed72d
authored
refactor: consolidate schema_api_test_suite CreateTableReq patterns with enhanced create_table_with (#18573)
This comprehensive refactoring enhances the create_table_with utility method and applies it consistently across all test functions:
- Enhanced create_table_with to accept optional TableMeta parameter, eliminating duplicate customization patterns
- Converted all 20+ test functions to use the unified create_table_with approach
- Removed redundant CreateTableReq instantiation and field setting patterns
- Simplified parameter passing by using objects instead of individual parameters
- Applied early return patterns to reduce nesting depth
- Cleaned up unused imports and methods
The refactoring maintains identical functionality while significantly improving code maintainability and reducing duplication across the test suite.1 parent d0f0e4b commit 79ed72d
1 file changed
+342
-430
lines changed
0 commit comments