Skip to content

MudTheme: Fix STJ Deserialization & add test#9961

Merged
ScarletKuro merged 1 commit intoMudBlazor:devfrom
ScarletKuro:test_mudtheme
Oct 10, 2024
Merged

MudTheme: Fix STJ Deserialization & add test#9961
ScarletKuro merged 1 commit intoMudBlazor:devfrom
ScarletKuro:test_mudtheme

Conversation

@ScarletKuro
Copy link
Member

@ScarletKuro ScarletKuro commented Oct 10, 2024

Description

Follow up: #9434

In case work is done for #9004, we need a test to ensure we do not break the STJ source generation for MudTheme.

I also didn't realize that, since we are using polymorphism for BaseTypography, we need to have a special annotation; otherwise, the deserialization will fail.

I believe it is generally important for MudTheme to be serializable, so you can dump it in JSON and then create a different object from it.

How Has This Been Tested?

Unit test.

Type of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (fix or improvement to the website or code docs)

Checklist

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

@github-actions github-actions bot added bug Unexpected behavior or functionality not working as intended PR: needs review labels Oct 10, 2024
@codecov
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.78%. Comparing base (28bc599) to head (0a8b84c).
Report is 536 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #9961      +/-   ##
==========================================
+ Coverage   89.82%   90.78%   +0.95%     
==========================================
  Files         412      407       -5     
  Lines       11878    12584     +706     
  Branches     2364     2454      +90     
==========================================
+ Hits        10670    11424     +754     
+ Misses        681      598      -83     
- Partials      527      562      +35     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unexpected behavior or functionality not working as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant