记录golanggithub.com/stretchr/testify失败问题
失败签名
PROJECT_COMPILE exit 1 ×1
test/contract.go:<n>:<n>: not enough arguments in call to require.Contains
证据质量: complete · go/compiler · compiler-diagnostic · outer go run · 首次记录: 2026-09-06 · 最近观测: 2026-09-06
sha256:4616263d81c5…
github.com/stretchr/testify/require.Contains github.com/stretchr/testify/require.Equal github.com/stretchr/testify/require.Error github.com/stretchr/testify/require.False github.com/stretchr/testify/require.New github.com/stretchr/testify/require.Nil github.com/stretchr/testify/require.NoError github.com/stretchr/testify/require.NotEqual github.com/stretchr/testify/require.NotNil github.com/stretchr/testify/require.True
测量的位置
PASS 表示该发行版在 PROJECT_COMPILE 记录过通过观测,并且没有这次失败的记录。这是本网络能报告的最接近“不存在”的结论,而不是不存在的证明。
复现的环境
- os=linux · runtime=go@1.26 ×1 2026-09-06 → 2026-09-06
最近的已知 PASS/FAIL 边界
判定发生变化的两个相邻发行版。没有任何测量的发行版不会填补这段间隔,而是被计数说明。
-
最后一个通过的发行版 v1.3.0 → 第一个失败的发行版 v1.7.0
两者之间从未在此阶段被测量的发行版:3
边界两侧的差异
- gopkg.in/yaml.v3 — → v3.0.0-20200313102051-9f266ea9e77c, v3.0.1 假设
跨越边界发生版本变化的依赖只是候选,不是原因。只有在同一次运行中同时记录了失败与当时解析出的依赖树的回执,才会被标记为证据。
各版本的依赖版本
本包的每个版本把子依赖解析到了哪个版本。版本发生变动的子依赖排在最前:升级正是在那里改变了你脚下的东西。
| 库 | v1.8.1 | v1.8.0 | v1.7.1 | v1.7.0 | v1.6.1 | v1.5.1 | v1.4.0 | v1.3.0 |
|---|---|---|---|---|---|---|---|---|
| github.com/davecgh/go-spew | v1.1.1 | v1.1.1 | v1.1.1 | v1.1.0 | v1.1.1 | v1.1.1 | v1.1.0 | v1.1.0 |
| github.com/stretchr/objx | v0.2.0 | v0.4.0 | — | v0.2.0 | v0.1.0 | v0.1.0 | v0.1.0 | v0.2.0 |
| gopkg.in/yaml.v2 | — | — | — | — | — | v2.3.0 | v2.4.0 | — |
| gopkg.in/yaml.v3 | v3.0.1 | v3.0.1 | v3.0.0-20210107192922-496545a6307b | v3.0.1 | v3.0.0-20200313102051-9f266ea9e77c | — | — | — |
| github.com/pmezard/go-difflib | v1.0.0 | v1.0.0 | v1.0.0 | v1.0.0 | v1.0.0 | v1.0.0 | v1.0.0 | v1.0.0 |
发生变动:4 · 所有版本相同:1
一条边记录的是解析器在真实机器上把一个版本放在了另一个版本旁边。它并不主张两者能协同工作;那个问题由样本和契约回答,而不是由这里存在一行来回答。
证据缺口
- 此范围内从未在 PROJECT_COMPILE 被测量过的发行版:6
- 没有为这次失败推断出失败领域。
针对受影响发行版的公开答案
- github.com/stretchr/testify v1.7.0: suite.Suite 本网络只提供一件事:能构建的样本。它在沙箱中运行并保留签名回执。它不评级、不担保——同样的代码能否在你的环境构建,它没有测量过。 HOWgithub.com/stretchr/testify/suite.Suitego 1.26.6 MIT-0 · 2026-09-06
- github.com/stretchr/testify v1.7.0: suite.Run 本网络只提供一件事:能构建的样本。它在沙箱中运行并保留签名回执。它不评级、不担保——同样的代码能否在你的环境构建,它没有测量过。 HOWgithub.com/stretchr/testify/suite.Rungo 1.26.6 MIT-0 · 2026-09-06
- github.com/stretchr/testify v1.7.0: assert.Never 本网络只提供一件事:能构建的样本。它在沙箱中运行并保留签名回执。它不评级、不担保——同样的代码能否在你的环境构建,它没有测量过。 HOWgithub.com/stretchr/testify/assert.Never MIT-0 · 2026-09-06