(t *testing.T)
| 408 | } |
| 409 | |
| 410 | func TestTopicGet(t *testing.T) { |
| 411 | got, err := adp.TopicGet(testData.Topics[0].Id) |
| 412 | if err != nil { |
| 413 | t.Fatal(err) |
| 414 | } |
| 415 | if !reflect.DeepEqual(got, testData.Topics[0]) { |
| 416 | t.Error(mismatchErrorString("Topic", got, testData.Topics[0])) |
| 417 | } |
| 418 | // Test not found |
| 419 | got, err = adp.TopicGet("asdfasdfasdf") |
| 420 | if err != nil { |
| 421 | t.Fatal(err) |
| 422 | } |
| 423 | if got != nil { |
| 424 | t.Error("Topic should be nil but got:", got) |
| 425 | } |
| 426 | } |
| 427 | |
| 428 | func TestTopicsForUser(t *testing.T) { |
| 429 | qOpts := types.QueryOpt{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…