Chaining doesn't bail out
未关闭
- 主要语言
- Go
- 星标
- 30
- 派生
- 4
- PR 合并指标
- 30 天内没有已合并 PR
描述
If you have:
```go
expect("a").
To.Equal("b").
And.Pass(SomeMatcher{}) // <- Should this not run?
```
I wouldn't expect the `And.Pass(...)` to be invoked.
贡献指南
这个仓库没有索引到贡献指南
调研方向
Look at the chaining logic in the expect package, likely in the main assertion methods. Understand how the chain is evaluated and where bail-out should occur after a failure. Check existing tests for chaining behavior to see the expected flow. The fix involves modifying the chain to stop evaluating subsequent matchers after a failure.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- go
- 领域
- testing
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 40/100