Ma77Ball opened a new issue, #5389:
URL: https://github.com/apache/texera/issues/5389

   ### Task Summary
   
`amber/src/main/scala/org/apache/texera/web/service/ExecutionResultService.scala`
 has a spec, but it exercises only `convertTuplesToJson`, and even there it 
under-asserts. Tighten the cleanly unit-testable surface:
   - **Binary preview formatting**: the existing cases assert only byte size 
and the presence of an ellipsis. Pin the exact preview bits for both branches: 
the 13-bits-or-fewer branch (a non-empty small field renders its full bit 
string with no ellipsis) and the leading-10 + ellipsis + trailing-3 format for 
larger fields.
   - **Web result-update ADT JSON contract**: add serialization tests for the 
`WebOutputMode` / `WebResultUpdate` types the frontend dispatches on, namely 
the `type` discriminator for `PaginationMode`/`SetSnapshotMode`/`SetDeltaMode` 
and the shapes of `WebPaginationUpdate` and `WebDataUpdate`.
   
   Note: the storage/DB/actor-dependent methods (`handleResultPagination`, 
`convertWebResultUpdate`, `attachToExecution`, `onResultUpdate`) need 
integration infrastructure and are out of scope for this unit-test task.
   
   ### Task Type
   - [x] Testing / QA


-- 
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]

Reply via email to