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

Function TestParseVimeoURL_User

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

Source from the content-addressed store, hash-verified

96}
97
98func TestParseVimeoURL_User(t *testing.T) {
99 link, _ := url.ParseRequestURI("https://vimeo.com/awhitelabelproduct")
100 kind, id, err := parseVimeoURL(link)
101 require.NoError(t, err)
102 require.Equal(t, model.TypeUser, kind)
103 require.Equal(t, "awhitelabelproduct", id)
104}
105
106func TestParseVimeoURL_InvalidLink(t *testing.T) {
107 link, _ := url.ParseRequestURI("http://www.apple.com")

Callers

nothing calls this directly

Calls 1

parseVimeoURLFunction · 0.85

Tested by

no test coverage detected