Skip to content

Commit

Permalink
Fix: fixed test data
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-serafin committed Oct 13, 2017
1 parent 85edcbb commit 5e0ee1a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ func (o ListsList) Version() int {
return 1
}

// Append appends the objects to the a new copy of the ListsList.
func (o ListsList) Append(objects ...Identifiable) ContentIdentifiable {

out := append(ListsList{}, o...)
for _, obj := range objects {
out = append(out, obj.(*List))
}

return out
}

// List represents the model of a list
type List struct {
// The identifier
Expand Down Expand Up @@ -424,6 +435,17 @@ func (o TasksList) Version() int {
return 1
}

// Append appends the objects to the a new copy of the TasksList.
func (o TasksList) Append(objects ...Identifiable) ContentIdentifiable {

out := append(TasksList{}, o...)
for _, obj := range objects {
out = append(out, obj.(*Task))
}

return out
}

// Task represents the model of a task
type Task struct {
// The identifier
Expand Down Expand Up @@ -815,6 +837,17 @@ func (o UsersList) Version() int {
return 1
}

// Append appends the objects to the a new copy of the UsersList.
func (o UsersList) Append(objects ...Identifiable) ContentIdentifiable {

out := append(UsersList{}, o...)
for _, obj := range objects {
out = append(out, obj.(*User))
}

return out
}

// User represents the model of a user
type User struct {
// The identifier
Expand Down

0 comments on commit 5e0ee1a

Please sign in to comment.