diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-26 10:49:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-26 10:49:23 +0100 |
commit | 537a7180a0d5132c11636c4fd8b1450cd99d352c (patch) | |
tree | fb9f8c84955a411bdffbd6371ea32f2716fb3687 /test/rspamd_url_test.c | |
parent | 5fd7a90fdaa33f52c59bdb0ca84451e5c1e22365 (diff) | |
download | rspamd-537a7180a0d5132c11636c4fd8b1450cd99d352c.tar.gz rspamd-537a7180a0d5132c11636c4fd8b1450cd99d352c.zip |
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
Diffstat (limited to 'test/rspamd_url_test.c')
-rw-r--r-- | test/rspamd_url_test.c | 95 |
1 files changed, 47 insertions, 48 deletions
diff --git a/test/rspamd_url_test.c b/test/rspamd_url_test.c index 092274cb1..c06f8d088 100644 --- a/test/rspamd_url_test.c +++ b/test/rspamd_url_test.c @@ -5,57 +5,56 @@ #include "tests.h" const char *test_text = -"www.schemeless.ru\n" -"www.schemeless.rus\n" -" as ftp.schemeless.ru dasd \n" -"ftp12.schemeless.ru\n" -"ftpsearch.schemeless.ru\n" -"schemeless.ru\n" -"www.schemeless.microsoft\n" -"1.2.3.4\n" -"1.2.3.4/a\n" -"1.2.3\n" -"1.2.3.4.5\n" -"www.schemeless.ru,\n" -"www.schemeless.ru.\n" -"http://www.schemed.ru.\n" -"http://www.schemed.ru.\n" -"http://www.bolinfest.com/targetalert/'\n" -"http://www.bolinfest.com/targetalert/'';\n" -"https://www.schemed.ru.\n" -"ufps://www.schemed.ru.\n" -"http://ported.ru:8080\n" -"http://ported.ru:8080\n" -"http://1.2.3.4\n" -"http://1.2.3.4:80\n" -"1.2.3.4:80\n" -"www.a9.com\n" -"www.a-9.com\n" -"http://www.schemed.ru/a.txt:\n" -"http://www.schemed.ru/a.txt'\n" -"http://www.schemed.ru/a.txt\"\n" -"http://www.schemed.ru/a.txt>\n" -"http://www.schemed.ru/a=3&b=4\n" -"http://spam.ru/bad=user@domain.com\n" -"http://spam.ru/bad=user@domain.com\n" -"http://spam.ru user@domain.com\n" -"http://a.foto.radikal.ru/0604/de7793c6ca62.jpg\n" -"http://a.foto.radikal.ru/0604/de7793c6ca62.jpg\n" -"schemeless.gz\n" -"schemeless.jp\n" -"schemeless.ua\n" -"schemeless.gz/a\n" -"mysql.so\n" -"http://mysql.so\n" -"3com.com\n" -"lj-user.livejournal.com\n" -"http://lj-user.livejournal.com\n" -"http://vsem.ru?action;\n"; + "www.schemeless.ru\n" + "www.schemeless.rus\n" + " as ftp.schemeless.ru dasd \n" + "ftp12.schemeless.ru\n" + "ftpsearch.schemeless.ru\n" + "schemeless.ru\n" + "www.schemeless.microsoft\n" + "1.2.3.4\n" + "1.2.3.4/a\n" + "1.2.3\n" + "1.2.3.4.5\n" + "www.schemeless.ru,\n" + "www.schemeless.ru.\n" + "http://www.schemed.ru.\n" + "http://www.schemed.ru.\n" + "http://www.bolinfest.com/targetalert/'\n" + "http://www.bolinfest.com/targetalert/'';\n" + "https://www.schemed.ru.\n" + "ufps://www.schemed.ru.\n" + "http://ported.ru:8080\n" + "http://ported.ru:8080\n" + "http://1.2.3.4\n" + "http://1.2.3.4:80\n" + "1.2.3.4:80\n" + "www.a9.com\n" + "www.a-9.com\n" + "http://www.schemed.ru/a.txt:\n" + "http://www.schemed.ru/a.txt'\n" + "http://www.schemed.ru/a.txt\"\n" + "http://www.schemed.ru/a.txt>\n" + "http://www.schemed.ru/a=3&b=4\n" + "http://spam.ru/bad=user@domain.com\n" + "http://spam.ru/bad=user@domain.com\n" + "http://spam.ru user@domain.com\n" + "http://a.foto.radikal.ru/0604/de7793c6ca62.jpg\n" + "http://a.foto.radikal.ru/0604/de7793c6ca62.jpg\n" + "schemeless.gz\n" + "schemeless.jp\n" + "schemeless.ua\n" + "schemeless.gz/a\n" + "mysql.so\n" + "http://mysql.so\n" + "3com.com\n" + "lj-user.livejournal.com\n" + "http://lj-user.livejournal.com\n" + "http://vsem.ru?action;\n"; const char *test_html = "<some_tag>This is test file with <a href=\"http://microsoft.com\">http://TesT.com/././?%45%46%20 url</a></some_tag>"; /* Function for using in glib test suite */ -void -rspamd_url_test_func (void) +void rspamd_url_test_func(void) { /* XXX: maybe write test for this */ } |