From 7b0f65f5f5486f5e32f749826744929813734e24 Mon Sep 17 00:00:00 2001 From: ferhat elmas Date: Mon, 7 Nov 2016 20:32:00 +0100 Subject: gofmt simplify (#111) --- formats/packp/pktline/encoder_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'formats') diff --git a/formats/packp/pktline/encoder_test.go b/formats/packp/pktline/encoder_test.go index 5990ea5..618002d 100644 --- a/formats/packp/pktline/encoder_test.go +++ b/formats/packp/pktline/encoder_test.go @@ -90,14 +90,14 @@ func (s *SuiteEncoder) TestEncode(c *C) { func (s *SuiteEncoder) TestEncodeErrPayloadTooLong(c *C) { for i, input := range [...][][]byte{ - [][]byte{ + { []byte(strings.Repeat("a", pktline.MaxPayloadSize+1)), }, - [][]byte{ + { []byte("hello world!"), []byte(strings.Repeat("a", pktline.MaxPayloadSize+1)), }, - [][]byte{ + { []byte("hello world!"), []byte(strings.Repeat("a", pktline.MaxPayloadSize+1)), []byte("foo"), @@ -174,14 +174,14 @@ func (s *SuiteEncoder) TestEncodeStrings(c *C) { func (s *SuiteEncoder) TestEncodeStringErrPayloadTooLong(c *C) { for i, input := range [...][]string{ - []string{ + { strings.Repeat("a", pktline.MaxPayloadSize+1), }, - []string{ + { "hello world!", strings.Repeat("a", pktline.MaxPayloadSize+1), }, - []string{ + { "hello world!", strings.Repeat("a", pktline.MaxPayloadSize+1), "foo", -- cgit