(t *testing.T)
| 511 | } |
| 512 | |
| 513 | func TestChannelsForUser(t *testing.T) { |
| 514 | // Test channels for user (PostgreSQL specific test) |
| 515 | channels, err := adp.ChannelsForUser(types.ParseUserId("usr" + testData.Users[0].Id)) |
| 516 | if err != nil { |
| 517 | t.Fatal(err) |
| 518 | } |
| 519 | // Should return empty slice since we don't have channel subscriptions in test data |
| 520 | if len(channels) != 0 { |
| 521 | t.Error(mismatchErrorString("Channels length", len(channels), 0)) |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | func TestSubscriptionGet(t *testing.T) { |
| 526 | 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…