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))
289
+
assert.Zero(t, result.Failures, "test '%s' has %d total runs and should have passed all runs, but failed some\n%s", result.TestName, result.Runs, resultsString(result))
290
+
assert.Zero(t, result.Panics, "test '%s' has %d total runs and should have passed all runs, but panicked some\n%s", result.TestName, result.Runs, resultsString(result))
291
+
assert.Zero(t, result.Skips, "test '%s' has %d total runs and should have passed all runs, but skipped some\n%s", result.TestName, result.Runs, resultsString(result))
292
+
assert.Zero(t, result.Races, "test '%s' has %d total runs and should have passed all runs, but raced some\n%s", result.TestName, result.Runs, resultsString(result))
289
293
}
290
294
ifexpected.someSuccesses {
291
295
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))
292
296
}
293
297
ifexpected.allFailures {
294
298
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))
299
+
assert.Zero(t, result.Successes, "test '%s' has %d total runs and should have failed all runs, but succeeded some\n%s", result.TestName, result.Runs, resultsString(result))
300
+
assert.Zero(t, result.Panics, "test '%s' has %d total runs and should have failed all runs, but panicked some\n%s", result.TestName, result.Runs, resultsString(result))
301
+
assert.Zero(t, result.Skips, "test '%s' has %d total runs and should have failed all runs, but skipped some\n%s", result.TestName, result.Runs, resultsString(result))
302
+
assert.Zero(t, result.Races, "test '%s' has %d total runs and should have failed all runs, but raced some\n%s", result.TestName, result.Runs, resultsString(result))
295
303
}
296
304
ifexpected.someFailures {
297
305
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))
298
306
}
299
307
ifexpected.allPanics {
300
308
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))
309
+
assert.Zero(t, result.Successes, "test '%s' has %d total runs and should have panicked all runs, but succeeded some\n%s", result.TestName, result.Runs, resultsString(result))
310
+
assert.Zero(t, result.Failures, "test '%s' has %d total runs and should have panicked all runs, but failed some\n%s", result.TestName, result.Runs, resultsString(result))
311
+
assert.Zero(t, result.Skips, "test '%s' has %d total runs and should have panicked all runs, but skipped some\n%s", result.TestName, result.Runs, resultsString(result))
312
+
assert.Zero(t, result.Races, "test '%s' has %d total runs and should have panicked all runs, but raced some\n%s", result.TestName, result.Runs, resultsString(result))
301
313
}
302
314
ifexpected.somePanics {
303
315
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))
304
316
}
305
317
ifexpected.allSkips {
306
318
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))
319
+
assert.Zero(t, result.Successes, "test '%s' has %d total runs and should have skipped all runs, but succeeded some\n%s", result.TestName, result.Runs, resultsString(result))
320
+
assert.Zero(t, result.Failures, "test '%s' has %d total runs and should have skipped all runs, but panicked some\n%s", result.TestName, result.Runs, resultsString(result))
321
+
assert.Zero(t, result.Panics, "test '%s' has %d total runs and should have skipped all runs, but panicked some\n%s", result.TestName, result.Runs, resultsString(result))
322
+
assert.Zero(t, result.Races, "test '%s' has %d total runs and should have skipped all runs, but raced some\n%s", result.TestName, result.Runs, resultsString(result))
307
323
}
308
324
ifexpected.allRaces {
309
325
assert.Equal(t, result.Races, result.Runs, "test '%s' has %d total runs and should have raced all runs, only raced %d\n%s", result.TestName, result.Runs, result.Races, resultsString(result))
326
+
assert.Zero(t, result.Successes, "test '%s' has %d total runs and should have raced all runs, but succeeded some\n%s", result.TestName, result.Runs, resultsString(result))
327
+
assert.Zero(t, result.Failures, "test '%s' has %d total runs and should have raced all runs, but panicked some\n%s", result.TestName, result.Runs, resultsString(result))
328
+
assert.Zero(t, result.Skips, "test '%s' has %d total runs and should have raced all runs, but skipped some\n%s", result.TestName, result.Runs, resultsString(result))
329
+
assert.Zero(t, result.Skips, "test '%s' has %d total runs and should have raced all runs, but panicked some\n%s", result.TestName, result.Runs, resultsString(result))
310
330
}
311
331
ifexpected.packagePanic {
312
332
assert.True(t, result.PackagePanicked, "test '%s' has %d total runs and should have package panicked", result.TestName, result.Runs)
0 commit comments