Skip to content

test: add coverage for video model options, appbuilder types, compositor source, SAM masks, timeline payload - #4237

Merged
georgi merged 1 commit into
mainfrom
test/add-coverage-appbuilder-compositor-sam
Jul 11, 2026
Merged

test: add coverage for video model options, appbuilder types, compositor source, SAM masks, timeline payload#4237
georgi merged 1 commit into
mainfrom
test/add-coverage-appbuilder-compositor-sam

Conversation

@claude

@claude claude Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add 5 new test files (58 tests total) covering previously untested pure functions across web/src
  • videoModelOptions (18 tests): constraints extraction, clampToAllowed, aspect ratio building, model normalization
  • appbuilder types (8 tests): eventToAction switch logic for setState, toggleState, cancel, run, and unknown kinds
  • compositor source (11 tests): isSourceReady and sourceDimensions for HTMLVideoElement, HTMLImageElement, and ImageBitmap sources
  • normalizeSamMasks (14 tests): mask extraction from various output shapes, URI resolution, dimension scaling with inverse scale, label fallback logic
  • timelineDocumentPayload (7 tests): field selection and reference preservation for the PATCH payload builder

Test plan

🤖 Generated with Claude Code

…tor source, SAM masks, timeline payload

Add 5 new test files covering previously untested pure functions:

- videoModelOptions: constraints extraction, clampToAllowed, aspect ratio building, model normalization (18 tests)
- appbuilder types: eventToAction switch logic for all action kinds (8 tests)
- compositor source: isSourceReady and sourceDimensions for video/image/bitmap sources (11 tests)
- normalizeSamMasks: mask extraction, URI resolution, dimension scaling, labeling (14 tests)
- timelineDocumentPayload: field selection and reference preservation (7 tests)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@georgi
georgi merged commit 012399e into main Jul 11, 2026
18 of 19 checks passed
@georgi
georgi deleted the test/add-coverage-appbuilder-compositor-sam branch July 11, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant