MCPcopy Create free account
hub / github.com/git/git / check_normalized_url_length

Function check_normalized_url_length

t/unit-tests/u-urlmatch-normalization.c:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35static void check_normalized_url_length(const char *url, size_t len)
36{
37 struct url_info info;
38 char *url_norm = url_normalize(url, &info);
39
40 cl_assert_equal_i(info.url_len, len);
41 free(url_norm);
42}
43
44/* Note that only "file:" URLs should be allowed without a host */
45void test_urlmatch_normalization__scheme(void)

Callers 1

Calls 1

url_normalizeFunction · 0.85

Tested by 1