Example #1
0
func TestError2(t *testing.T) {
	eTask := &fakeTask{err: kSomeError}
	if err := tasks.Run(eTask); err != kSomeError {
		t.Error("Expected some error.")
	}
}
Example #2
0
func TestNoError2(t *testing.T) {
	eTask := tasks.NilTask()
	if err := tasks.Run(eTask); err != nil {
		t.Error("Expected no error.")
	}
}