Exemple #1
0
func TestRunJobAfterCheckSomeFalse(t *testing.T) {
	testAfterCheck(
		t,
		[][]error{{nil}, {buddha.CheckFalse("dummy false"), buddha.CheckFalse("dummy false")}},
		[]int{1, DefaultFailures},
		DefaultFailures,
	)
}
Exemple #2
0
func TestRunJobBeforeCheckFalse(t *testing.T) {
	testBeforeCheck(
		t,
		[][]error{{buddha.CheckFalse("dummy false"), buddha.CheckFalse("dummy false")}},
		[]int{DefaultFailures},
		DefaultFailures,
		false,
	)
}
Exemple #3
0
func TestRunJobAfterCheckFalseThenTrue(t *testing.T) {
	testAfterCheck(
		t,
		[][]error{{buddha.CheckFalse("dummy false"), nil}},
		[]int{DefaultFailures},
		DefaultFailures,
	)
}
Exemple #4
0
func TestRunJobSomeUnecessary(t *testing.T) {
	testNecessityCheck(
		t,
		[][]error{{nil}, {buddha.CheckFalse("dummy false")}},
		[]int{1, 1},
		DefaultFailures,
		true,
	)
}