]> granicus.if.org Git - curl/commit
tests: add urlapi unittest
authorDaniel Gustafsson <daniel@yesql.se>
Tue, 11 Dec 2018 14:02:24 +0000 (15:02 +0100)
committerDaniel Gustafsson <daniel@yesql.se>
Tue, 11 Dec 2018 14:02:24 +0000 (15:02 +0100)
commite1be2ecba485e49c740286b7bc431592507aa8f0
treed7f5342e4609a8d39eae81df1bb6d2e709921a64
parent63533cbde279ce91ed9e9c92d47b6297235d1d02
tests: add urlapi unittest

This adds a new unittest intended to cover the internal functions in
the urlapi code, starting with parse_port(). In order to avoid name
collisions in debug builds, parse_port() is renamed Curl_parse_port()
since it will be exported.

Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Reviewed-by: Marcel Raad <Marcel.Raad@teamviewer.com>
lib/urlapi-int.h
lib/urlapi.c
tests/data/Makefile.inc
tests/data/test1653 [new file with mode: 0644]
tests/unit/Makefile.inc
tests/unit/unit1653.c [new file with mode: 0644]