(now time.Time, users []*types.User)
| 123 | } |
| 124 | |
| 125 | func initTopics(now time.Time, users []*types.User) []*types.Topic { |
| 126 | topics := make([]*types.Topic, 0, 5) |
| 127 | topics = append(topics, &types.Topic{ |
| 128 | ObjHeader: types.ObjHeader{ |
| 129 | Id: "grpgRXf0rU4uR4", |
| 130 | CreatedAt: now.Add(10 * time.Minute), |
| 131 | UpdatedAt: now, |
| 132 | }, |
| 133 | TouchedAt: now, |
| 134 | Owner: users[0].Id, |
| 135 | SeqId: 111, |
| 136 | Tags: []string{"travel", "zxcv"}, |
| 137 | SubCnt: 2, |
| 138 | }) |
| 139 | topics = append(topics, &types.Topic{ |
| 140 | ObjHeader: types.ObjHeader{ |
| 141 | Id: "p2p9AVDamaNCRbfKzGSh3mE0w", |
| 142 | CreatedAt: now, |
| 143 | UpdatedAt: now, |
| 144 | }, |
| 145 | TouchedAt: now, |
| 146 | SeqId: 12, |
| 147 | }) |
| 148 | topics = append(topics, &types.Topic{ |
| 149 | ObjHeader: types.ObjHeader{ |
| 150 | Id: "p2pxQLrX3WPS2rfKzGSh3mE0w", |
| 151 | CreatedAt: now, |
| 152 | UpdatedAt: now, |
| 153 | }, |
| 154 | TouchedAt: now, |
| 155 | SeqId: 15, |
| 156 | }) |
| 157 | topics = append(topics, &types.Topic{ |
| 158 | ObjHeader: types.ObjHeader{ |
| 159 | Id: "p2pE1iE7I9JN5ESv44HiLbj1A", |
| 160 | CreatedAt: now, |
| 161 | UpdatedAt: now, |
| 162 | }, |
| 163 | TouchedAt: now, |
| 164 | SeqId: 555, |
| 165 | }) |
| 166 | topics = append(topics, &types.Topic{ |
| 167 | ObjHeader: types.ObjHeader{ |
| 168 | Id: "p2pQvr1xwKU01LfKzGSh3mE0w", |
| 169 | CreatedAt: now, |
| 170 | UpdatedAt: now, |
| 171 | }, |
| 172 | TouchedAt: now, |
| 173 | SeqId: 333, |
| 174 | }) |
| 175 | return topics |
| 176 | } |
| 177 | |
| 178 | func initSubs(now time.Time, users []*types.User, topics []*types.Topic) []*types.Subscription { |
| 179 | subs := make([]*types.Subscription, 0, 6) |
no test coverage detected
searching dependent graphs…