Skip to content

Add unit tests for amber ErrorUtils #4708

@Yicong-Huang

Description

@Yicong-Huang

Task Summary

amber/src/main/scala/org/apache/texera/amber/error/ErrorUtils.scala currently has ~24% unit-test coverage and no dedicated spec. Add unit tests for ErrorUtils covering safely (ControlThrowable rethrow vs. handler delegation), mkConsoleMessage (with and without stack frames), mkControlError (cause vs. no-cause branches and the "at " stacktrace formatting), reconstructThrowable (Python vs. Scala language, with and without errorDetails, stack-trace regex parsing), getStackTraceWithAllCauses (top-level header vs. nested "Caused by:" recursion), and getOperatorFromActorIdOpt (empty option vs. parsed actor name).

Task Type

  • Testing / QA

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions