func TestCheckMessage(t *testing.T) { p := googleimage.NewPlugin(googleimage.NewGoogleImageAPIClient(http.DefaultClient, "cx", "key")) ok, _ := p.CheckMessage(testEvent, testEvent.BaseText()) if !ok { t.Errorf("ERROR check = NG") } }
func TestDoAction(t *testing.T) { p := googleimage.NewPlugin(googleimage.NewGoogleImageAPIClient(http.DefaultClient, "cx", "key")) next := p.DoAction(testEvent, testEvent.BaseText()) if next != false { t.Errorf("ERROR next != false") } }