(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func TestParseYoutubeURL_User(t *testing.T) { |
| 41 | link, _ := url.ParseRequestURI("https://youtube.com/user/fxigr1") |
| 42 | kind, id, err := parseYoutubeURL(link) |
| 43 | require.NoError(t, err) |
| 44 | require.Equal(t, model.TypeUser, kind) |
| 45 | require.Equal(t, "fxigr1", id) |
| 46 | } |
| 47 | |
| 48 | func TestParseYoutubeURL_InvalidLink(t *testing.T) { |
| 49 | link, _ := url.ParseRequestURI("https://www.youtube.com/user///") |
nothing calls this directly
no test coverage detected