release / web (push) Successful in 1m20s
release / go (push) Failing after 1m48s
release / govulncheck (push) Successful in 18s
release / integration (push) Failing after 2m32s
release / android (push) Failing after 3m29s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 3m44s
Proves the test-count lanes still show a failure and still go red: - go lane: words TestCount fails a row, and TestDeliberatePanic kills the package binary mid-test; both outputs must appear. - integration lane: quarantine TestFlag_HappyPath fails. - android lane: BareUdnTest's six rows fail, and the count step still runs and reports them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
668 B
Go
25 lines
668 B
Go
package words
|
|
|
|
import "testing"
|
|
|
|
func TestCount(t *testing.T) {
|
|
cases := []struct {
|
|
got, want string
|
|
}{
|
|
{Count(1, "track", "tracks"), "1 tracks"}, // DELIBERATE BREAK #8372
|
|
{Count(0, "track", "tracks"), "0 tracks"},
|
|
{Count(int64(3), "track went missing", "tracks went missing"), "3 tracks went missing"},
|
|
{Count(int32(-1), "copy", "copies"), "-1 copies"},
|
|
}
|
|
for _, c := range cases {
|
|
if c.got != c.want {
|
|
t.Errorf("got %q, want %q", c.got, c.want)
|
|
}
|
|
}
|
|
}
|
|
|
|
func TestDeliberatePanic(t *testing.T) { // DELIBERATE BREAK #8372
|
|
t.Log("this line must appear in the failed output")
|
|
panic("deliberate break (#8372): a test binary that dies mid-test")
|
|
}
|