mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-12 16:26:36 +08:00
@@ -20,6 +20,13 @@ func TestPublicDownloadTitleUsesMagnetDisplayName(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestTorrentURLInfoHashNormalizesBase32BTIH(t *testing.T) {
|
||||
got := torrentURLInfoHash("magnet:?xt=urn:btih:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")
|
||||
if got != "0000000000000000000000000000000000000000" {
|
||||
t.Fatalf("hash = %q", got)
|
||||
}
|
||||
}
|
||||
|
||||
func configureTestDefaultQB(t *testing.T, repos *repository.Container, baseURL string) {
|
||||
t.Helper()
|
||||
if err := repos.DownloadClient.Create(t.Context(), &model.DownloadClient{
|
||||
|
||||
Reference in New Issue
Block a user