flutter / flutter/devtools

Redundant use of `equals(...)` across test code

未关闭
#5,210 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
cleanup P3
主要语言
Dart
星标
1.7k
派生
404
平均合并
6 天 17 小时
30 天内合并 PR
18

描述

`equals` is the default matcher, so we do not need to specify this everywhere.
e.g.
`expect(myVar, equals('hello'))` ==> `expect(myVar, 'hello')`

贡献指南

打开贡献指南

调研方向

首先使用 issue 中的示例作为模式,在测试代码中搜索与 `equals` matcher 一起使用的 `expect`。在适当的情况下替换冗余的 `equals(...)` 用法,并运行受影响的测试以确认它们仍然通过。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart
领域
testing-qa
Issue 类型
重构
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。