Closed nielsenko closed 3 months ago
Totals | |
---|---|
Change from base Build 9695895354: | 0.007% |
Covered Lines: | 5988 |
Relevant Lines: | 6887 |
Totals | |
---|---|
Change from base Build 9695895354: | 0.007% |
Covered Lines: | 5988 |
Relevant Lines: | 6887 |
Totals | |
---|---|
Change from base Build 9695895354: | 0.02% |
Covered Lines: | 5992 |
Relevant Lines: | 6891 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
packages/realm_dart/lib/src/handles/native/init.dart | 8 | 9 | 88.89% | ||
<!-- | Total: | 29 | 30 | 96.67% | --> |
Totals | |
---|---|
Change from base Build 9695895354: | 0.02% |
Covered Lines: | 6000 |
Relevant Lines: | 6900 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
packages/realm_dart/lib/src/handles/native/init.dart | 13 | 14 | 92.86% | ||
packages/ejson/lib/src/types.dart | 3 | 5 | 60.0% | ||
<!-- | Total: | 64 | 67 | 95.52% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
packages/realm_dart/lib/src/configuration.dart | 2 | 73.11% | ||
<!-- | Total: | 2 | --> |
Totals | |
---|---|
Change from base Build 9695895354: | 0.003% |
Covered Lines: | 6019 |
Relevant Lines: | 6923 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
packages/realm_dart/lib/src/handles/native/init.dart | 21 | 22 | 95.45% | ||
packages/ejson/lib/src/types.dart | 3 | 5 | 60.0% | ||
<!-- | Total: | 83 | 86 | 96.51% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
packages/ejson/lib/src/decoding.dart | 1 | 99.19% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 10212460480: | 0.06% |
Covered Lines: | 6078 |
Relevant Lines: | 6972 |
Assuming:
then the following now works:
Previously the call to
fromEJson<Player>(ejson)
would fail unlessejson
was a map with shape{ 'name': ..., 'game': ..., scoresByRound: ...}
despitegame
being nullable, andscoresByRound
being optional.This PR also rectifies and oversight regarding
RealmValue
andDecimal128
. These types are now supported without explicit calls toregister
.Also, sets are now supported:
and
RealValue
can be deserialized fromDBRef
:Fixes: #1735 Fixes: #1737 Fixes: #1761 Fixes: #1757