(t *testing.T)
| 139 | } |
| 140 | |
| 141 | func TestTopicCreate(t *testing.T) { |
| 142 | err := adp.TopicCreate(testData.Topics[0]) |
| 143 | if err != nil { |
| 144 | t.Error(err) |
| 145 | } |
| 146 | // Update topic SeqId because it's not saved at creation time but used by the tests. |
| 147 | err = adp.TopicUpdate(testData.Topics[0].Id, map[string]interface{}{ |
| 148 | "seqid": testData.Topics[0].SeqId, |
| 149 | }) |
| 150 | if err != nil { |
| 151 | t.Error(err) |
| 152 | } |
| 153 | for _, tpc := range testData.Topics[3:] { |
| 154 | err = adp.TopicCreate(tpc) |
| 155 | if err != nil { |
| 156 | t.Error(err) |
| 157 | } |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | func decodeUid(u string) int64 { |
| 162 | return store.DecodeUid(types.ParseUid(u)) |
nothing calls this directly
no test coverage detected
searching dependent graphs…