Added lots of unit tests.
authormishaz <misha@curoverse.com>
Sat, 28 Feb 2015 02:36:46 +0000 (02:36 +0000)
committermishaz <misha@curoverse.com>
Sat, 28 Feb 2015 02:36:46 +0000 (02:36 +0000)
commita56406d730f2a07dd442b9e99ef9dab7b7d81895
tree7bc460796bfd128c2ede6e019426f56a5934fe00
parenta5a4f79e91aa8bba1794394646808f6d4c444661
Added lots of unit tests.
Switched collections.ReadCollections.BlockToCollectionIndex to collections.ReadCollections.BlockToCollectionIndices since a block can belong to more than one collection.
Made collection.Summarize a method of ReadCollections.
Made a couple testing libraries in blockdigest and collection.
Moved collection.MakeBlockDigest() to blockdigest.MakeTestBlockDigest() (in the testing library).
Created collection.MakeTestReadCollections to simply writing and reading tests (in the testing library).
Created the BlockSet and CollectionIndexSet types to hide some of the awkwardness of using maps as sets and added FromSlice methods.
Moved functions for reading and writing data locally to separate file.
Created separate ReplicationSummaryCounts struct and PrettyPrint method.
Added stats for Collections in addition to Blocks.
sdk/go/blockdigest/blockdigest.go
sdk/go/blockdigest/testing.go [new file with mode: 0644]
sdk/go/logger/main/testlogger.go [deleted file]
services/datamanager/collection/collection.go
services/datamanager/collection/collection_test.go [new file with mode: 0644]
services/datamanager/collection/testing.go [new file with mode: 0644]
services/datamanager/datamanager.go
services/datamanager/summary/file.go [new file with mode: 0644]
services/datamanager/summary/summary.go