We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edbff58 commit 3cbade6Copy full SHA for 3cbade6
.gitignore
@@ -1,3 +1,6 @@
1
*.cover
2
*.test
3
*.out
4
+
5
+# As this is a library, we ignore go.sum
6
+go.sum
go.mod
@@ -1 +1,8 @@
module gopkg.in/irc.v3
+go 1.13
+require (
+ github.com/stretchr/testify v1.4.0
7
+ gopkg.in/yaml.v2 v2.2.8
8
+)
parser_test.go
@@ -10,6 +10,12 @@ import (
10
yaml "gopkg.in/yaml.v2"
11
)
12
13
+func BenchmarkParseMessage(b *testing.B) {
14
+ for i := 0; i < b.N; i++ {
15
+ MustParseMessage("@tag1=something :nick!user@host PRIVMSG #channel :some message")
16
+ }
17
+}
18
19
func TestMustParseMessage(t *testing.T) {
20
t.Parallel()
21
0 commit comments