Kevin "Tristate Tom" Weiss
16b616218c
Merge pull request #18734 from Teufelchen1/tests/uri_parser
...
unittests/uri_parser: Rework tests to be more verbose
2022-11-29 19:43:34 +01:00
Teufelchen1
49efb727da
unittests/uri_parser: Rework tests to be more verbose
2022-11-29 16:47:07 +01:00
Karl Fessel
54ada3685a
tests: add missing includes
2022-11-22 13:39:35 +01:00
Teufelchen1
df8fe4476d
sys/uri_parser: Adding the port as uint16
2022-09-08 11:32:49 +02:00
Martine Lenders
9a54e7ef7f
Merge pull request #18099 from kaspar030/unittests_native_asan
...
unittests: enable ASAN on native
2022-05-13 14:11:59 +02:00
dcf5cda260
tests/unittests/uri_parser: increase VEC_MSG_LEN
...
Previous value tripped ASAN. Increase to sth with room to spare.
2022-05-13 11:47:17 +02:00
5c0b99a1a0
tests/unittests/tests-uri_parser: add bad port length case
2022-05-11 21:33:02 +02:00
Martine Lenders
4d2a942b5e
tests/unittests: amend uri_parser tests for query-splitter
2021-08-04 12:47:28 +02:00
Cenk Gündoğan
6ef29d9b53
tests: uri_parser: new test to check empty host
2021-02-05 13:32:49 +01:00
Sören Tempel
333572e091
uri_parser: check if uri is long enough to even contain a ://
...
Before attempting to access these characters. This fixes an
out-of-bounds read on the provided URI buffer.
2021-02-04 20:08:26 +01:00
Cenk Gündoğan
1da3738619
unittests: uri_parser: extend for interfaces
2020-11-11 22:47:30 +01:00
Cenk Gündoğan
abd399b934
Merge pull request #13804 from chrysn-pull-requests/uri-test-isabsolute
...
uri_parser: Fix and test non-relative recognition
2020-04-05 13:42:11 +02:00
chrysn
2ec0fee1fa
uri_parser: Adjust test expectations on relative references with colon
...
This fixes the contested case, and adds the example of RFC3986 Section
4.2[1] to the should be relative cases.
[1]: https://tools.ietf.org/html/rfc3986#section-4.2
2020-04-03 15:21:33 +02:00
chrysn
3d6d27374c
uri_parser: Add test for absolute function
...
One value in the output is possibly wrong, was left in the passing state
as the rest of the expected state reflects the same misconception, and
commented thusly.
2020-04-03 14:54:38 +02:00
Cenk Gündoğan
1bfc1fbcb3
uri_parser: unittests: add validity check for unterminated string
2020-04-02 15:11:34 +02:00
Martine Lenders
004126a5e9
tests/unittests/uri_parse: generate more sophisticated error message
2020-04-01 08:42:25 +02:00
Martine Lenders
413153704a
tests/unittests/uri_parse: use less confusing assert message
...
Also use `strncmp()` instead of `memcmp()`
2020-04-01 00:56:08 +02:00
Martine Lenders
21399ccade
tests/unittests/uri_parse: add array index as parameter to VEC_CHECK
2020-04-01 00:55:20 +02:00
Cenk Gündoğan
ed30450fcf
tests/unittests: add tests for uri_parser
2020-03-31 23:54:40 +02:00