MCPcopy
hub / github.com/mxpv/podsync / TestParseYoutubeURL_User

Function TestParseYoutubeURL_User

pkg/builder/url_test.go:40–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func 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
48func TestParseYoutubeURL_InvalidLink(t *testing.T) {
49 link, _ := url.ParseRequestURI("https://www.youtube.com/user///")

Callers

nothing calls this directly

Calls 1

parseYoutubeURLFunction · 0.85

Tested by

no test coverage detected