6260: golint suggested updates
authorradhika <radhika@curoverse.com>
Mon, 14 Sep 2015 19:23:56 +0000 (15:23 -0400)
committerradhika <radhika@curoverse.com>
Mon, 14 Sep 2015 19:23:56 +0000 (15:23 -0400)
services/datamanager/collection/testing.go

index f3c1f47664a039e6b6771c620c41cef3272a8c44..ac6e9cbfe9302f46151418ac34f72ccf92944083 100644 (file)
@@ -7,6 +7,7 @@ import (
        "git.curoverse.com/arvados.git/sdk/go/blockdigest"
 )
 
+// TestCollectionSpec with test blocks and desired replication level
 type TestCollectionSpec struct {
        // The desired replication level
        ReplicationLevel int
@@ -15,9 +16,9 @@ type TestCollectionSpec struct {
        Blocks []int
 }
 
-// Creates a ReadCollections object for testing based on the give
-// specs.  Only the ReadAllCollections and UuidToCollection fields are
-// populated.  To populate other fields call rc.Summarize().
+// MakeTestReadCollections creates a ReadCollections object for testing
+// based on the give specs. Only the ReadAllCollections and UuidToCollection
+// fields are populated. To populate other fields call rc.Summarize().
 func MakeTestReadCollections(specs []TestCollectionSpec) (rc ReadCollections) {
        rc = ReadCollections{
                ReadAllCollections: true,
@@ -45,10 +46,10 @@ func MakeTestReadCollections(specs []TestCollectionSpec) (rc ReadCollections) {
        return
 }
 
-// Returns a slice giving the collection index of each collection that
-// was passed in to MakeTestReadCollections. rc.Summarize() must be
-// called before this method, since Summarize() assigns an index to
-// each collection.
+// CollectionIndicesForTesting returns a slice giving the collection
+// index of each collection that was passed in to MakeTestReadCollections.
+// rc.Summarize() must be called before this method, since Summarize()
+// assigns an index to each collection.
 func (rc ReadCollections) CollectionIndicesForTesting() (indices []int) {
        // TODO(misha): Assert that rc.Summarize() has been called.
        numCollections := len(rc.CollectionIndexToUuid)