Repository navigation
Add unit tests for ActorObjectSerializer - #1790
Conversation
Covers the previously untested paths of ActorObjectSerializer: actor timer deserialization (including the data attribute and missing optional attributes), null handling in serialize and deserialize, actor runtime config serialization with all attributes and per-type configs, and the default serialization pass-through for custom types. Part of dapr#369 Signed-off-by: Jean Pierre Mandujano G. <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1790 +/- ##
============================================
+ Coverage 76.89% 76.99% +0.09%
- Complexity 2300 2306 +6
============================================
Files 244 244
Lines 7145 7145
Branches 748 748
============================================
+ Hits 5494 5501 +7
+ Misses 1285 1284 -1
+ Partials 366 360 -6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@holopin-bot @manduinca sdk-badge Thank you! Here's a digital badge as a small token of appreciation. |
|
Congratulations @manduinca, the maintainer of this repository has issued you a badge! Here it is: https://holopin.io/claim/cmsczi04u0009jj04ark0ou3g This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account. |
Description
Adds a dedicated unit test class for
ActorObjectSerializerinsdk-actors. This serializer had no test of its own, and the timer deserialization path (ActorTimerParams) had no coverage at all.The 10 new tests cover: null handling in
serialize/deserialize, timer serialization including thedatafield (base64), timer round trips with and without data, timer JSON with missing optional attributes,ActorRuntimeConfigserialization with all attributes and per-typeentitiesConfig, and default pass-through for custom types.ActorRuntimeTestandActorProxyImplTestalready grew a lot since the issue was filed, so this PR is scoped to the remaining gap.Verified locally with
./mvnw -pl sdk-actors -am install -DskipITs=true: 159 tests in the module, 0 failures. Checkstyle clean.Issue reference
Part of #369
Checklist