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