mirror of
https://github.com/fluffle/goirc
synced 2025-07-14 17:21:15 +00:00
add simple test code to make building this package within src/pkg happy; update irc/Makefile whitespace -- s/ /\t/; update .gitignore to ignore _test directory created in test build;
15 lines
354 B
Go
15 lines
354 B
Go
package irc
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// Not really sure what or how to test something that basically requires a
|
|
// connection to an IRC server to function, but we need some tests or when this
|
|
// is present in the go package tree builds fail hard :-(
|
|
func TestIRC(t *testing.T) {
|
|
if c := New("test", "test", "Testing IRC"); c == nil {
|
|
t.FailNow()
|
|
}
|
|
}
|
|
|