summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <rgerus@dpd.com.pl>2015-12-16 19:29:36 +0100
committerRobert Gerus <rgerus@dpd.com.pl>2015-12-16 19:29:36 +0100
commit1d8d793a61123ead06f8a07b2ffb1949bd2c909b (patch)
tree0d9a65a86ff6def17343fa985d34041895655779
parent52dee8ab2006fa3588b1836bad61face0d977a94 (diff)
downloadgorepost-1d8d793a61123ead06f8a07b2ffb1949bd2c909b.tar.gz
gorepost-1d8d793a61123ead06f8a07b2ffb1949bd2c909b.tar.bz2
gorepost-1d8d793a61123ead06f8a07b2ffb1949bd2c909b.tar.xz
gorepost-1d8d793a61123ead06f8a07b2ffb1949bd2c909b.zip
Add a simple test.
-rw-r--r--bot/plugins_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/bot/plugins_test.go b/bot/plugins_test.go
index fedd783..5b68922 100644
--- a/bot/plugins_test.go
+++ b/bot/plugins_test.go
@@ -788,6 +788,18 @@ var variableOutputTestEvents = []struct {
{
in: irc.Message{
Command: "PRIVMSG",
+ Trailing: ":korwin",
+ Params: []string{"#testchan-1"},
+ Prefix: &irc.Prefix{
+ Name: "idontexist",
+ },
+ },
+ outRegex: *regexp.MustCompile("^."),
+ function: korwin,
+ },
+ {
+ in: irc.Message{
+ Command: "PRIVMSG",
Trailing: ":at",
Params: []string{"#testchan-1"},
Prefix: &irc.Prefix{