Skip to content

chore(llc): unit tests manual edits of open api models#1227

Merged
Brazol merged 2 commits intomainfrom
chore/test-open-api-manual-edits
Apr 28, 2026
Merged

chore(llc): unit tests manual edits of open api models#1227
Brazol merged 2 commits intomainfrom
chore/test-open-api-manual-edits

Conversation

@Brazol
Copy link
Copy Markdown
Contributor

@Brazol Brazol commented Apr 28, 2026

Summary by CodeRabbit

  • Tests
    • Added comprehensive test suite validating OpenAPI model parsing, JSON serialization round-tripping, nullable field handling, and edge case scenarios across multiple model types and configurations.

@Brazol Brazol requested a review from a team as a code owner April 28, 2026 12:58
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 28, 2026

📝 Walkthrough

Walkthrough

A new test suite is introduced that validates OpenAPI model regeneration and manual edit persistence, covering serialization/deserialization of date-time fields, nested metrics structures, nullable maps, and default value behavior across multiple model types with minimal JSON fixtures.

Changes

Cohort / File(s) Summary
OpenAPI Models Test Suite
packages/stream_video/test/src/open_api/open_api_manual_edits_test.dart
New comprehensive test suite validating OpenAPI model serialization/deserialization, including date-time parsing, type-map conversions, nullable field handling, nested metrics parsing, default values, and permission event payload structures.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 Fresh tests hop into the fold,
Validating models, both new and old,
From dates to maps with care untold,
Our OpenAPI shines, brave and bold! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request has no description provided by the author, failing to meet the repository template requirements for Goal, Implementation details, Testing, and Contributor Checklist sections. Add a comprehensive PR description following the template with sections for Goal, Implementation details, Testing, and Contributor Checklist items.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately summarizes the main change: adding unit tests for manually edited OpenAPI models in the stream_video package.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/test-open-api-manual-edits

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Brazol Brazol changed the title chore: unit tests manual edits of open api models chore(llc): unit tests manual edits of open api models Apr 28, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 8.05%. Comparing base (fef326f) to head (f3114ba).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##            main   #1227      +/-   ##
========================================
+ Coverage   5.82%   8.05%   +2.22%     
========================================
  Files        676     676              
  Lines      49394   49394              
========================================
+ Hits        2878    3977    +1099     
+ Misses     46516   45417    -1099     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Brazol Brazol merged commit 673c6ef into main Apr 28, 2026
16 of 19 checks passed
@Brazol Brazol deleted the chore/test-open-api-manual-edits branch April 28, 2026 14:24
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.

2 participants