aboutsummaryrefslogtreecommitdiffstats
path: root/formats/packp/pktline/encoder_test.go
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2016-11-07 20:32:00 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2016-11-07 20:32:00 +0100
commit7b0f65f5f5486f5e32f749826744929813734e24 (patch)
treeda3d4bbf7caf3fe5d712fb3a1df9c42fb549ee2c /formats/packp/pktline/encoder_test.go
parent0ff9ef2b44c53e557c78bde0fd9c29847e5f0e23 (diff)
downloadgo-git-7b0f65f5f5486f5e32f749826744929813734e24.tar.gz
gofmt simplify (#111)
Diffstat (limited to 'formats/packp/pktline/encoder_test.go')
-rw-r--r--formats/packp/pktline/encoder_test.go12
1 files changed, 6 insertions, 6 deletions
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",