You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.Equal(t, result.Successes, result.Runs, "test '%s' has %d total runs and should have passed all runs, only passed %d\n%s", result.TestName, result.Runs, result.Successes, resultsString(result))
281
287
}
288
+
ifexpected.someSuccesses {
289
+
assert.Greater(t, result.Successes, 0, "test '%s' has %d total runs and should have passed some runs, passed none\n%s", result.TestName, result.Runs, resultsString(result))
290
+
}
282
291
ifexpected.allFailures {
283
292
assert.Equal(t, result.Failures, result.Runs, "test '%s' has %d total runs and should have failed all runs, only failed %d\n%s", result.TestName, result.Runs, result.Failures, resultsString(result))
284
293
}
294
+
ifexpected.someFailures {
295
+
assert.Greater(t, result.Failures, 0, "test '%s' has %d total runs and should have failed some runs, failed none\n%s", result.TestName, result.Runs, resultsString(result))
296
+
}
285
297
ifexpected.allPanics {
286
298
assert.Equal(t, result.Panics, result.Runs, "test '%s' has %d total runs and should have panicked all runs, only panicked %d\n%s", result.TestName, result.Runs, result.Panics, resultsString(result))
287
299
}
300
+
ifexpected.somePanics {
301
+
assert.Greater(t, result.Panics, 0, "test '%s' has %d total runs and should have panicked some runs, panicked none\n%s", result.TestName, result.Runs, resultsString(result))
302
+
}
288
303
ifexpected.allSkips {
289
304
assert.Equal(t, result.Skips, result.Runs, "test '%s' has %d total runs and should have skipped all runs, only skipped %d\n%s", result.TestName, result.Runs, result.Skips, resultsString(result))
0 commit comments