aglinxinyuan opened a new issue, #9216: URL: https://github.com/apache/texera/issues/9216
### Task Summary In `FileScanUtilsSpec.scala`, 11 test cases across the `FileScanUtils.createTuplesFromFile` suite repeatedly pass the same 8-argument parameter lists (`displayFileName = "d"`, `attributeType = FileAttributeType.STRING`, `fileEncoding = FileDecodingMethod.UTF_8`, `extract = false`, `outputFileName = false`, etc.). In addition, 5 test cases in the `safeToByteArray` suite duplicate the intercept/stream read pattern. Introduce a default-argument `scan(...)` test helper and a `memoryFailureMessage(...)` test helper in `FileScanUtilsSpec.scala` to deduplicate test setups while preserving all test cases, docstrings, and assertion semantics. ### Task Type - [x] Refactor / Cleanup - [x] Test addition or improvement -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
