Skip to content

Commit

Permalink
Test toDownloadableURL
Browse files Browse the repository at this point in the history
  • Loading branch information
IljaN committed Sep 29, 2024
1 parent 254b819 commit 14fa438
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ func TestToDownloadPath(t *testing.T) {
assert.True(t, strings.HasPrefix(downloadPath, "/tmp/foo/DL-"))
}

func TestToDownloadableURL(t *testing.T) {
mediaURL := "https://ipv6-cndoca-avcd.nflxvideo.net/range/0-52342?t=12345"
downloadableURL := toDownloadableURL(mediaURL)
assert.Equal(t, "https://ipv6-cndoca-avcd.nflxvideo.net?t=12345", downloadableURL)
}

func TestProbeFileFormat(t *testing.T) {
testCases := []struct {
filePath string
Expand Down

0 comments on commit 14fa438

Please sign in to comment.