client-sdk-js
7e742f5b - test(transcription): add converter harness and cover accumulation

Commit
4 days ago
test(transcription): add converter harness and cover accumulation This commit adds the test harness for the converter. The harness builds a reader that a test drives step by step. A test can write a chunk, look at the result, and then close the stream. The close merges attributes into the info object. The real manager does the same thing when a trailer arrives. Three tests use the harness: - Chunks of one stream add together. The closing attribute makes the segment final. - A second stream with the same segment id replaces the text. It does not add to the text. - A close does not send the same update two times.
Author
Committer
Parents
Loading