gifs/api

Paddy 2014-10-17 Parent:d3ba1115bfd0 Child:96aac3ae74e6

2:18cb30e077ba Browse Files

Stub out the rest of our datastore tests. Seriously, just define the functions we eventually want to write.

datastore_test.go

     1.1 --- a/datastore_test.go	Fri Oct 17 07:11:56 2014 -0400
     1.2 +++ b/datastore_test.go	Fri Oct 17 07:12:23 2014 -0400
     1.3 @@ -4,7 +4,7 @@
     1.4  	"testing"
     1.5  	"time"
     1.6  
     1.7 -	"secondbit.org/uuid"
     1.8 +	"code.secondbit.org/uuid.hg"
     1.9  )
    1.10  
    1.11  var datastores = []Datastore{NewMemstore()}
    1.12 @@ -47,3 +47,96 @@
    1.13  		}
    1.14  	}
    1.15  }
    1.16 +
    1.17 +func TestUpdateCollection(t *testing.T) {
    1.18 +}
    1.19 +
    1.20 +func TestUpdateCollectionCollectionNotFound(t *testing.T) {
    1.21 +}
    1.22 +
    1.23 +func TestGetCollectionByDomain(t *testing.T) {
    1.24 +}
    1.25 +
    1.26 +func TestGetCollectionByDomainCollectionNotFound(t *testing.T) {
    1.27 +}
    1.28 +
    1.29 +func TestGetCollectionByID(t *testing.T) {
    1.30 +}
    1.31 +
    1.32 +func TestGetCollectionByIDCollectionNotFound(t *testing.T) {
    1.33 +}
    1.34 +
    1.35 +func TestGetCollectionsByUser(t *testing.T) {
    1.36 +}
    1.37 +
    1.38 +func TestGetCollectionsByUserNoCollections(t *testing.T) {
    1.39 +}
    1.40 +
    1.41 +func TestAddDomainToCollection(t *testing.T) {
    1.42 +}
    1.43 +
    1.44 +func TestAddDomainToCollectionDomainAlreadyExists(t *testing.T) {
    1.45 +}
    1.46 +
    1.47 +func TestAddDomainToCollectionCollectionNotFound(t *testing.T) {
    1.48 +}
    1.49 +
    1.50 +func TestRemoveDomainFromCollection(t *testing.T) {
    1.51 +}
    1.52 +
    1.53 +func TestRemoveDomainFromCollectionDomainNotFound(t *testing.T) {
    1.54 +}
    1.55 +
    1.56 +func TestGetDomainsByCollection(t *testing.T) {
    1.57 +}
    1.58 +
    1.59 +func TestGetDomainsByCollectionNoResults(t *testing.T) {
    1.60 +}
    1.61 +
    1.62 +func TestDeleteCollection(t *testing.T) {
    1.63 +}
    1.64 +
    1.65 +func TestDeleteCollectionCollectionNotFound(t *testing.T) {
    1.66 +}
    1.67 +
    1.68 +func TestGetItemsByCollectionDomain(t *testing.T) {
    1.69 +}
    1.70 +
    1.71 +func TestGetItemsByCollectionDomainCollectionNotFound(t *testing.T) {
    1.72 +}
    1.73 +
    1.74 +func TestGetItemsByCollectionDomainNoResults(t *testing.T) {
    1.75 +}
    1.76 +
    1.77 +func TestGetItemsByCollectionID(t *testing.T) {
    1.78 +}
    1.79 +
    1.80 +func TestGetItemsByCollectionIDCollectionNotFound(t *testing.T) {
    1.81 +}
    1.82 +
    1.83 +func TestGetItemsByCollectionIDNoResults(t *testing.T) {
    1.84 +}
    1.85 +
    1.86 +func TestAddItemToCollection(t *testing.T) {
    1.87 +}
    1.88 +
    1.89 +func TestAddItemToCollectionCollectionNotFound(t *testing.T) {
    1.90 +}
    1.91 +
    1.92 +func TestAddItemToCollectionItemAlreadyExists(t *testing.T) {
    1.93 +}
    1.94 +
    1.95 +func TestGetItemByName(t *testing.T) {
    1.96 +}
    1.97 +
    1.98 +func TestGetItemByNameCollectionNotFound(t *testing.T) {
    1.99 +}
   1.100 +
   1.101 +func TestGetItemByNameItemNotFound(t *testing.T) {
   1.102 +}
   1.103 +
   1.104 +func TestDeleteItem(t *testing.T) {
   1.105 +}
   1.106 +
   1.107 +func TestDeleteItemItemNotFound(t *testing.T) {
   1.108 +}