parse-community / Parse-Swift

The Swift SDK for Parse Platform (iOS, macOS, watchOS, tvOS, Linux, Android, Windows)
https://parseplatform.org
MIT License
308 stars 69 forks source link

fix: improve codable's #352

Closed cbaker6 closed 2 years ago

cbaker6 commented 2 years ago

New Pull Request Checklist

Issue Description

Improve the ability of the internal AnyCodable to encode Encodable.

Related issue: #n/a

Approach

Add more test cases.

TODOs before merging

parse-github-assistant[bot] commented 2 years ago

Thanks for opening this pull request!

codecov[bot] commented 2 years ago

Codecov Report

Merging #352 (cf8ff55) into main (8b90507) will increase coverage by 0.04%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #352      +/-   ##
==========================================
+ Coverage   87.31%   87.35%   +0.04%     
==========================================
  Files         114      114              
  Lines       12207    12209       +2     
==========================================
+ Hits        10658    10665       +7     
+ Misses       1549     1544       -5     
Impacted Files Coverage Δ
Sources/ParseSwift/Coding/AnyDecodable.swift 27.47% <ø> (ø)
Sources/ParseSwift/Coding/AnyEncodable.swift 52.29% <100.00%> (+2.88%) :arrow_up:
Sources/ParseSwift/Objects/ParseObject.swift 84.88% <0.00%> (-0.46%) :arrow_down:
Sources/ParseSwift/LiveQuery/ParseLiveQuery.swift 73.63% <0.00%> (+0.58%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8b90507...cf8ff55. Read the comment docs.