gofmt pass

This commit is contained in:
Amadeo Casas 2014-08-17 13:26:17 -07:00
parent 9a6ac4f5c5
commit 65753ab5ed

View File

@ -193,7 +193,7 @@ func (s *GoesTestSuite) TestBulkSend(c *C) {
docType := "tweet" docType := "tweet"
tweets := []Document{ tweets := []Document{
Document{ {
Id: "123", Id: "123",
Index: indexName, Index: indexName,
Type: docType, Type: docType,
@ -204,7 +204,7 @@ func (s *GoesTestSuite) TestBulkSend(c *C) {
}, },
}, },
Document{ {
Id: nil, Id: nil,
Index: indexName, Index: indexName,
Type: docType, Type: docType,
@ -263,13 +263,13 @@ func (s *GoesTestSuite) TestBulkSend(c *C) {
c.Assert(checked, Equals, 2) c.Assert(checked, Equals, 2)
docToDelete := []Document{ docToDelete := []Document{
Document{ {
Id: "123", Id: "123",
Index: indexName, Index: indexName,
Type: docType, Type: docType,
BulkCommand: BULK_COMMAND_DELETE, BulkCommand: BULK_COMMAND_DELETE,
}, },
Document{ {
Id: extraDocId, Id: extraDocId,
Index: indexName, Index: indexName,
Type: docType, Type: docType,
@ -601,7 +601,7 @@ func (s *GoesTestSuite) TestSearch(c *C) {
"query": map[string]interface{}{ "query": map[string]interface{}{
"bool": map[string]interface{}{ "bool": map[string]interface{}{
"must": []map[string]interface{}{ "must": []map[string]interface{}{
map[string]interface{}{ {
"match_all": map[string]interface{}{}, "match_all": map[string]interface{}{},
}, },
}, },
@ -614,7 +614,7 @@ func (s *GoesTestSuite) TestSearch(c *C) {
Total: 1, Total: 1,
MaxScore: 1.0, MaxScore: 1.0,
Hits: []Hit{ Hits: []Hit{
Hit{ {
Index: indexName, Index: indexName,
Type: docType, Type: docType,
Id: docId, Id: docId,
@ -659,7 +659,7 @@ func (s *GoesTestSuite) TestIndexStatus(c *C) {
c.Assert(sizeInBytes > 0, Equals, true) c.Assert(sizeInBytes > 0, Equals, true)
expectedIndices := map[string]IndexStatus{ expectedIndices := map[string]IndexStatus{
indexName: IndexStatus{ indexName: {
Index: map[string]interface{}{ Index: map[string]interface{}{
"primary_size_in_bytes": primarySizeInBytes, "primary_size_in_bytes": primarySizeInBytes,
"size_in_bytes": sizeInBytes, "size_in_bytes": sizeInBytes,
@ -700,7 +700,7 @@ func (s *GoesTestSuite) TestScroll(c *C) {
docType := "tweet" docType := "tweet"
tweets := []Document{ tweets := []Document{
Document{ {
Id: nil, Id: nil,
Index: indexName, Index: indexName,
Type: docType, Type: docType,
@ -711,7 +711,7 @@ func (s *GoesTestSuite) TestScroll(c *C) {
}, },
}, },
Document{ {
Id: nil, Id: nil,
Index: indexName, Index: indexName,
Type: docType, Type: docType,
@ -722,7 +722,7 @@ func (s *GoesTestSuite) TestScroll(c *C) {
}, },
}, },
Document{ {
Id: nil, Id: nil,
Index: indexName, Index: indexName,
Type: docType, Type: docType,
@ -800,7 +800,7 @@ func (s *GoesTestSuite) TestAggregations(c *C) {
docType := "tweet" docType := "tweet"
tweets := []Document{ tweets := []Document{
Document{ {
Id: nil, Id: nil,
Index: indexName, Index: indexName,
Type: docType, Type: docType,
@ -812,7 +812,7 @@ func (s *GoesTestSuite) TestAggregations(c *C) {
}, },
}, },
Document{ {
Id: nil, Id: nil,
Index: indexName, Index: indexName,
Type: docType, Type: docType,
@ -824,7 +824,7 @@ func (s *GoesTestSuite) TestAggregations(c *C) {
}, },
}, },
Document{ {
Id: nil, Id: nil,
Index: indexName, Index: indexName,
Type: docType, Type: docType,