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

Function check_url_normalizable

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

Source from the content-addressed store, hash-verified

2#include "urlmatch.h"
3
4static void check_url_normalizable(const char *url, unsigned int normalizable)
5{
6 char *url_norm = url_normalize(url, NULL);
7
8 cl_assert_equal_i(normalizable, url_norm ? 1 : 0);
9 free(url_norm);
10}
11
12static void check_normalized_url(const char *url, const char *expect)
13{

Calls 1

url_normalizeFunction · 0.85