Refactor and improve `GIDEMMSupport` parameters and tests
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- objective-c
调研方向
首先阅读 GIDEMMSupport 的实现及其现有的单元测试,尤其是 parametersWithParameters 和对 UIDevice 进行 swizzle 的测试。检查公共 API 如何暴露这一行为,并确定哪些测试依赖真实的设备状态。完成标准是:嵌套数组键参数能够被安全丢弃,UIDevice 的 mocking 保持一致且 hermetic,并在适当情况下通过 coverage 覆盖公共 API。
由索引模型根据 Issue 内容生成。
描述
This issue tracks follow-up improvements identified during the review of PR #608. We need to address the following technical debt and testing improvements:
- Handle nested data structures: Ensure that the
parametersWithParametersfunction safely drops key parameters that contain values like a nested array. - Standardize
UIDevicemocking: Fix the tests that are swizzlingUIDeviceto "Not Do That," or ensure all tests are doing it the same way. Relying on the realUIDevicewill make tests non-hermetic. - Uplevel tests to the public API: Consider upleveling the new
GIDEMMSupportunit tests to test against the public API instead of testing internal classes in isolation.
- 主要语言
- Objective-C
- 星标
- 751
- 派生
- 282
- 平均合并
- 4 天 20 小时
- 30 天内合并 PR
- 11
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/GoogleSignIn-iOS 的其他 Issue
-
enhancement triage
难度 2/5 1-3 小时 新手友好度 72/100
google/GoogleSignIn-iOS#621 ·
-
enhancement triage
难度 2/5 1-3 小时 新手友好度 76/100
google/GoogleSignIn-iOS#620 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
google/GoogleSignIn-iOS#440 · 4 条评论 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 45/100
google/GoogleSignIn-iOS#607 ·
-
enhancement triage
难度 4/5 3-5 天 新手友好度 52/100
google/GoogleSignIn-iOS#602 ·
查看 google/GoogleSignIn-iOS 的全部 Issue
相似的 Issue
-
bug triage
难度 2/5 1-3 小时 新手友好度 78/100
openid/AppAuth-iOS#979 ·
-
难度 2/5 1-3 小时 新手友好度 90/100
NativeScript/NativeScript#11448 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
razorpay/razorpay-pod#306 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
objective-see/KnockKnock#55 · 1 条评论 ·