gofmt fixes (#1930)

This commit is contained in:
Aditya Manthramurthy
2016-12-16 08:29:00 -08:00
committed by Harshavardhana
parent 1e16ed5e55
commit 4a96d65408
2 changed files with 10 additions and 10 deletions
+9 -9
View File
@@ -43,7 +43,7 @@ func (s *TestSuite) TestList(c *C) {
reader := bytes.NewReader([]byte(data))
var n int64
n, err = fsClient.Put(reader, int64(len(data)), map[string][]string{
"Content-Type": []string{"application/octet-stream"},
"Content-Type": {"application/octet-stream"},
}, nil)
c.Assert(err, IsNil)
c.Assert(n, Equals, int64(len(data)))
@@ -54,7 +54,7 @@ func (s *TestSuite) TestList(c *C) {
reader = bytes.NewReader([]byte(data))
n, err = fsClient.Put(reader, int64(len(data)), map[string][]string{
"Content-Type": []string{"application/octet-stream"},
"Content-Type": {"application/octet-stream"},
}, nil)
c.Assert(err, IsNil)
c.Assert(n, Equals, int64(len(data)))
@@ -82,7 +82,7 @@ func (s *TestSuite) TestList(c *C) {
reader = bytes.NewReader([]byte(data))
n, err = fsClient.Put(reader, int64(len(data)), map[string][]string{
"Content-Type": []string{"application/octet-stream"},
"Content-Type": {"application/octet-stream"},
}, nil)
c.Assert(err, IsNil)
c.Assert(n, Equals, int64(len(data)))
@@ -142,7 +142,7 @@ func (s *TestSuite) TestList(c *C) {
reader = bytes.NewReader([]byte(data))
n, err = fsClient.Put(reader, int64(len(data)), map[string][]string{
"Content-Type": []string{"application/octet-stream"},
"Content-Type": {"application/octet-stream"},
}, nil)
c.Assert(err, IsNil)
c.Assert(n, Equals, int64(len(data)))
@@ -249,7 +249,7 @@ func (s *TestSuite) TestPut(c *C) {
reader := bytes.NewReader([]byte(data))
var n int64
n, err = fsClient.Put(reader, int64(len(data)), map[string][]string{
"Content-Type": []string{"application/octet-stream"},
"Content-Type": {"application/octet-stream"},
}, nil)
c.Assert(err, IsNil)
c.Assert(n, Equals, int64(len(data)))
@@ -269,7 +269,7 @@ func (s *TestSuite) TestGet(c *C) {
var reader io.Reader
reader = bytes.NewReader([]byte(data))
n, err := fsClient.Put(reader, int64(len(data)), map[string][]string{
"Content-Type": []string{"application/octet-stream"},
"Content-Type": {"application/octet-stream"},
}, nil)
c.Assert(err, IsNil)
c.Assert(n, Equals, int64(len(data)))
@@ -297,7 +297,7 @@ func (s *TestSuite) TestGetRange(c *C) {
var reader io.Reader
reader = bytes.NewReader([]byte(data))
n, err := fsClient.Put(reader, int64(len(data)), map[string][]string{
"Content-Type": []string{"application/octet-stream"},
"Content-Type": {"application/octet-stream"},
}, nil)
c.Assert(err, IsNil)
c.Assert(n, Equals, int64(len(data)))
@@ -328,7 +328,7 @@ func (s *TestSuite) TestStatObject(c *C) {
dataLen := len(data)
reader := bytes.NewReader([]byte(data))
n, err := fsClient.Put(reader, int64(dataLen), map[string][]string{
"Content-Type": []string{"application/octet-stream"},
"Content-Type": {"application/octet-stream"},
}, nil)
c.Assert(err, IsNil)
c.Assert(n, Equals, int64(len(data)))
@@ -354,7 +354,7 @@ func (s *TestSuite) TestCopy(c *C) {
var reader io.Reader
reader = bytes.NewReader([]byte(data))
n, err := fsClientSource.Put(reader, int64(len(data)), map[string][]string{
"Content-Type": []string{"application/octet-stream"},
"Content-Type": {"application/octet-stream"},
}, nil)
c.Assert(err, IsNil)
c.Assert(n, Equals, int64(len(data)))
+1 -1
View File
@@ -225,7 +225,7 @@ func (s *TestSuite) TestObjectOperations(c *C) {
var reader io.Reader
reader = bytes.NewReader(object.data)
n, err := s3c.Put(reader, int64(len(object.data)), map[string][]string{
"Content-Type": []string{"application/octet-stream"},
"Content-Type": {"application/octet-stream"},
}, nil)
c.Assert(err, IsNil)
c.Assert(n, Equals, int64(len(object.data)))