The GitHub Actions job "License Binary Checker" on texera.git/main has failed.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
c543d7796a027382828648826266a0e45232934c / Xinyuan Lin <[email protected]>
test(frontend): extend WorkflowGraph unit test coverage (#6586)

### What changes were proposed in this PR?

Extends the existing `workflow-graph.spec.ts` with 44 new tests (24 ->
68) for the `TexeraGraph` in-memory model, targeting
previously-uncovered behavior:
- operator/link/port add-remove-get and their guard/throw branches;
- disabled / view-result / reuse-cache state toggles and their getters
(incl. sink-ignore and idempotent no-ops);
- comment-box create/edit/delete and the `assert*` existence helpers;
- operator debug-state lifecycle;
- `getSubDAG` (full DAG from terminals, targeted root,
disabled-operator/link exclusion, visited dedup on a diamond);
- `setPortProperty`; and every event-stream getter.

Reuses the existing direct-construction setup; adds an `afterEach` that
tears down the shared model. Statement coverage for the file went from
262 uncovered lines to 18 (the remainder are unreachable defensive
branches). No existing tests modified.

### Any related issues, documentation, discussions?

Closes #6583.

### How was this PR tested?

`npx ng test --watch=false --include='**/workflow-graph.spec.ts'` ->
68/68 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])

Report URL: https://github.com/apache/texera/actions/runs/29740226715

With regards,
GitHub Actions via GitBox

Reply via email to