mengw15 opened a new pull request, #6353: URL: https://github.com/apache/texera/pull/6353
### What changes were proposed in this PR? Add unit test coverage for `extractOperatorInputPortSchemaMap` in `agent-service/src/agent/util/workflow-utils.ts` — a pure function (type-only imports) that maps each input port of an operator to its resolved upstream schema. A `bun test` `.spec.ts` sits next to the source. No production-code changes. ### Any related issues, documentation, discussions? Closes #6334. ### How was this PR tested? ``` bun test src/agent/util/workflow-utils.spec.ts ``` 6 pass. `bun run typecheck` and `bun run format:check` are clean. The spec is pure — it builds `OperatorPredicate` / `OperatorLink` / schema fixtures in-process and covers: no input links → `undefined`; a single port → its keyed schema; an absent source operator; an unparseable source `portID`; link-to-port routing by target port number; and multiple input ports each keyed separately. ### 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]
