Closed xxfast closed 1 year ago
File | Coverage [97.85%] | :white_check_mark: |
---|---|---|
kstore/src/commonMain/kotlin/io/github/xxfast/kstore/KStore.kt | 100.00% | :white_check_mark: |
kstore/src/commonMain/kotlin/io/github/xxfast/kstore/extensions/KVersionedStore.kt | 92.59% | :white_check_mark: |
kstore/src/commonTest/kotlin/io/github/xxfast/kstore/KStoreTests.kt | 97.63% | :white_check_mark: |
kstore/src/commonTest/kotlin/io/github/xxfast/kstore/KVersionedStoreTests.kt | 98.78% | :white_check_mark: |
Total Project Coverage | 98.55% | :white_check_mark: |
---|
Previously, decoding a malformed file will return the default. This behaviour is not always desirable and might be unexpected. Hence, I'm no longer making this behaviour the default.
With this change, the default decoder of
storeOf()
will throw if the file is malformed. To handle this, you'll need to implement your own safe decoder, depending on the behaviour you want. SeeVerstionStore.kt
for an example of a custom behaviour