(t *testing.T)
| 504 | } |
| 505 | |
| 506 | func TestChannelsForUser(t *testing.T) { |
| 507 | // Test RethinkDB specific method |
| 508 | channels, err := adp.ChannelsForUser(types.ParseUserId("usr" + testData.Users[0].Id)) |
| 509 | if err != nil { |
| 510 | t.Fatal(err) |
| 511 | } |
| 512 | // Should return empty slice since we don't have channel subscriptions in test data |
| 513 | if len(channels) != 0 { |
| 514 | t.Error(mismatchErrorString("Channels length", len(channels), 0)) |
| 515 | } |
| 516 | } |
| 517 | |
| 518 | func TestSubscriptionGet(t *testing.T) { |
| 519 | got, err := adp.SubscriptionGet(testData.Topics[0].Id, types.ParseUserId("usr"+testData.Users[0].Id), false) |
nothing calls this directly
no test coverage detected
searching dependent graphs…