ducky/devices

Paddy 2015-11-15 Parent:7bc6a84ac906 Child:f5a9d5f8f28d

8:34130c700842 Go to Latest

ducky/devices/memstore_test.go

Implement ListDevicesByOwner. Write a unit test for listing Devices by their Owner property, as per our Storer interface. Basically, if we insert Devices into the datastore, we need to be able to retrieve the Devices that someone owns. Simple enough. This meant that I needed to implement the Memstore version, past the barebones stub, so the tests would continue to pass.

History
1 package devices
3 func init() {
4 storers = append(storers, NewMemstore())
5 }