Exemple #1
0
func TestCheckMessage(t *testing.T) {
	p := lgtm.NewPlugin()
	ok, _ := p.CheckMessage(testEvent, testEvent.BaseText())
	if !ok {
		t.Errorf("ERROR check = NG")
	}
}
Exemple #2
0
func TestDoAction(t *testing.T) {
	p := lgtm.NewPlugin()

	next := p.DoAction(testEvent, testEvent.BaseText())

	if next != false {
		t.Errorf("ERROR next != false")
	}
}
Exemple #3
0
func TestDoActionArgsUser(t *testing.T) {
	p := lgtm.NewPlugin()

	testEvent := plugins.NewTestEvent("LGTM kyokomi")
	next := p.DoAction(testEvent, testEvent.BaseText())

	if next != false {
		t.Errorf("ERROR next != false")
	}
}