1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-09-06 00:43:20 +00:00

Run gofmt to fix some trailing whitespace &c.

This commit is contained in:
Alex Bramley 2015-11-02 21:41:41 +00:00
parent e935d78bb7
commit 1e190eb233
5 changed files with 22 additions and 15 deletions

View file

@ -44,7 +44,10 @@ func TestLineCopy(t *testing.T) {
}
func TestLineText(t *testing.T) {
tests := []struct{in *Line; out string}{
tests := []struct {
in *Line
out string
}{
{&Line{}, ""},
{&Line{Args: []string{"one thing"}}, "one thing"},
{&Line{Args: []string{"one", "two"}}, "two"},
@ -59,7 +62,10 @@ func TestLineText(t *testing.T) {
}
func TestLineTarget(t *testing.T) {
tests := []struct{in *Line; out string}{
tests := []struct {
in *Line
out string
}{
{&Line{}, ""},
{&Line{Cmd: JOIN, Args: []string{"#foo"}}, "#foo"},
{&Line{Cmd: PART, Args: []string{"#foo", "bye"}}, "#foo"},