fix gofmt, run tests in travis

This commit is contained in:
Shivaram Lingamneni 2020-11-16 17:45:34 -05:00
parent 245831ff95
commit 04fc29b345
3 changed files with 9 additions and 10 deletions

View File

@ -10,4 +10,4 @@ before_install:
script:
- gotestcover -coverprofile=cover.out ./...
- $HOME/gopath/bin/goveralls -service=travis-ci -coverprofile cover.out
- bash ./.travis.gofmt.sh
- make test

View File

@ -1,7 +1,6 @@
test:
cd ircfmt && go test . && go vet .
cd ircmap && go test . && go vet .
cd ircmatch && go test . && go vet .
cd ircmsg && go test . && go vet .
cd ircutils && go test . && go vet .
./.check-gofmt.sh

View File

@ -92,14 +92,14 @@ var tagdecodetests = []testtags{
{"time=12732;re=;asdf=5678", map[string]string{"time": "12732", "re": "", "asdf": "5678"}},
{"time=12732;draft/label=b;re=;asdf=5678", map[string]string{"time": "12732", "re": "", "asdf": "5678", "draft/label": "b"}},
{"=these;time=12732;=shouldbe;re=;asdf=5678;=ignored", map[string]string{"time": "12732", "re": "", "asdf": "5678"}},
{"dolphin=🐬;time=123456", map[string]string{"dolphin": "🐬", "time": "123456",}},
{"+dolphin=🐬;+draft/fox=f🦊x", map[string]string{"+dolphin": "🐬", "+draft/fox": "f🦊x",}},
{"+dolphin=🐬;+draft/f🦊x=fox", map[string]string{"+dolphin": "🐬",}},
{"+dolphin=🐬;+f🦊x=fox", map[string]string{"+dolphin": "🐬",}},
{"+dolphin=🐬;f🦊x=fox", map[string]string{"+dolphin": "🐬",}},
{"dolphin=🐬;f🦊x=fox", map[string]string{"dolphin": "🐬",}},
{"f🦊x=fox;+oragono.io/dolphin=🐬", map[string]string{"+oragono.io/dolphin": "🐬",}},
{"a=b;\\/=.", map[string]string{"a": "b",}},
{"dolphin=🐬;time=123456", map[string]string{"dolphin": "🐬", "time": "123456"}},
{"+dolphin=🐬;+draft/fox=f🦊x", map[string]string{"+dolphin": "🐬", "+draft/fox": "f🦊x"}},
{"+dolphin=🐬;+draft/f🦊x=fox", map[string]string{"+dolphin": "🐬"}},
{"+dolphin=🐬;+f🦊x=fox", map[string]string{"+dolphin": "🐬"}},
{"+dolphin=🐬;f🦊x=fox", map[string]string{"+dolphin": "🐬"}},
{"dolphin=🐬;f🦊x=fox", map[string]string{"dolphin": "🐬"}},
{"f🦊x=fox;+oragono.io/dolphin=🐬", map[string]string{"+oragono.io/dolphin": "🐬"}},
{"a=b;\\/=.", map[string]string{"a": "b"}},
}
func parseTags(rawTags string) (map[string]string, error) {