(t *testing.T)
| 39 | } |
| 40 | |
| 41 | func TestGetManifests(t *testing.T) { |
| 42 | b := &ManifestResponse{} |
| 43 | rpcengine.GetManifests(nil, b) |
| 44 | |
| 45 | if len(b.Manifests) == 0 { |
| 46 | t.Error("Did not receive any manifests") |
| 47 | } |
| 48 | |
| 49 | if b.Manifests[0].Name != "Deluge" { |
| 50 | t.Error("Manifest has no name set", b.Manifests[0]) |
| 51 | } |
| 52 | } |
nothing calls this directly
no test coverage detected