(t *testing.T)
| 123 | } |
| 124 | |
| 125 | func TestAuthAddRecord(t *testing.T) { |
| 126 | for _, rec := range testData.Recs { |
| 127 | err := adp.AuthAddRecord(types.ParseUserId("usr"+rec.UserId), rec.Scheme, rec.Unique, |
| 128 | rec.AuthLvl, rec.Secret, rec.Expires) |
| 129 | if err != nil { |
| 130 | t.Fatal(err) |
| 131 | } |
| 132 | } |
| 133 | //Test duplicate |
| 134 | err := adp.AuthAddRecord(types.ParseUserId("usr"+testData.Users[0].Id), testData.Recs[0].Scheme, |
| 135 | testData.Recs[0].Unique, testData.Recs[0].AuthLvl, testData.Recs[0].Secret, testData.Recs[0].Expires) |
| 136 | if err != types.ErrDuplicate { |
| 137 | t.Fatal("Should be duplicate error but got", err) |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | func TestTopicCreate(t *testing.T) { |
| 142 | err := adp.TopicCreate(testData.Topics[0]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…