| Test |
Duration |
Result |
| checkInstantAvailability — API exception returns uncached |
0.007s |
passed |
| checkInstantAvailability — cached hash returns true with qualities |
0.017s |
passed |
| checkInstantAvailability — empty input returns empty map |
0.003s |
passed |
| checkInstantAvailability — uncached hash returns false |
0.120s |
passed |
| checkTokenValidity — API exception returns false |
0.016s |
passed |
| checkTokenValidity — valid token returns true |
0.004s |
passed |
| getAccountInfo — free user |
0.005s |
passed |
| getAccountInfo — premium user with traffic |
0.076s |
passed |
| getDownloadUrl — 40-char hash converted to magnet URI |
0.070s |
passed |
| getDownloadUrl — calls selectFiles when waiting_files_selection then resolves |
0.074s |
passed |
| getDownloadUrl — downloaded with null links throws |
0.083s |
passed |
| getDownloadUrl — empty links list throws |
0.007s |
passed |
| getDownloadUrl — empty torrent ID throws |
0.005s |
passed |
| getDownloadUrl — falls back to link when download is null |
0.009s |
passed |
| getDownloadUrl — resolves magnet through full lifecycle |
0.014s |
passed |
| getDownloadUrl — status dead throws |
0.007s |
passed |
| getDownloadUrl — status magnet_error throws |
0.008s |
passed |
| getDownloadUrl — status virus throws |
0.008s |
passed |
| getDownloadUrl — terminal error status throws |
0.006s |
passed |
| getDownloadUrl — unrestrict returns null for both download and link |
0.011s |
passed |
| listCloudItems — empty list |
0.006s |
passed |
| listCloudItems — returns mapped items |
0.718s |
passed |
| resolveCloudItem — falls back to link when download is null |
0.006s |
passed |
| resolveCloudItem — null playableUrl returns null |
0.004s |
passed |
| resolveCloudItem — unrestricts link and returns download URL |
0.004s |
passed |