aglinxinyuan opened a new pull request, #6598: URL: https://github.com/apache/texera/pull/6598
### What changes were proposed in this PR? Extends the existing `workflow-result-export.service.spec.ts` with 17 new tests (7 -> 24) for `WorkflowResultExportService`, targeting previously-uncovered behavior: - `computeRestrictionAnalysis` (no-wid guard, backend map, `catchError`); - the `performExport` flow (config-disabled no-op, null computing unit, missing workflow id, empty selection, all-blocked error vs partial-block warning+export, dataset export success / non-success body / null body / error callback, and `local` routing); - `updateExportAvailabilityFlags` (idle+snapshot vs running); and - the export-status stream. Reuses the existing subject-backed service doubles; no module-level `vi.mock`. Statement coverage: ~48% -> 100% (51 -> 0 uncovered lines). No existing tests modified. ### Any related issues, documentation, discussions? Closes #6595. ### How was this PR tested? `npx ng test --watch=false --include='**/workflow-result-export.service.spec.ts'` -> 24/24 passing. `yarn format:ci` passes. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Opus 4.8 [1M context]) -- 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]
