Commit graph

12 commits

Author SHA1 Message Date
Daniel Salzman
7f6692bab5 yparser: fix empty list parsing 2024-05-16 16:57:54 +02:00
Daniel Salzman
12456aede5 tests: extend test set for yparser 2024-05-16 16:57:54 +02:00
Daniel Salzman
f15b644716 yparser: allow UTF-8 characters in item data 2021-08-16 12:44:21 +02:00
Jan Hák
c04e509468 geoip: Added support for SRV DNAME that specify service/protocol
Description can be found at RFC 2782
2019-09-10 14:06:54 +02:00
Jan Hák
63d9d0933e geoip: added wildcard as possible configuration 2019-09-08 17:10:04 +02:00
David Vašek
e3d311d8ed coding style improvements - copyright notice 2019-07-04 15:16:43 +02:00
Daniel Salzman
83de00c53f yparser: fix invalid error line number for lines with leading tabulator 2019-06-23 21:54:30 +02:00
Daniel Salzman
1c4c59083b yparser: add support for backslashed characters in item value
Backslash character before quotation character is removed during parsing.

This feature is useful for the GeoIP module.
2018-10-03 22:59:30 +02:00
Daniel Kahn Gillmor
846bb431d2 use https://www.gnu.org instead of http://www.gnu.org
www.gnu.org has offered https for years now.
2018-08-29 09:45:57 -04:00
Daniel Salzman
136f065332 yparser: add support for dname key value 2018-06-12 13:43:06 +02:00
Petr Špaček
339f7a5fb9 tests: replace ok(ret == KNOT_E???) with is_int(KNOT_E???, ret) to ease debugging
Throwing away unexpected retun codes makes debugging harder.
TAP function is_int can nicely log mismatches which makes debugging easier.

To make our lives easier I replaced all ok(ret == KNOT_E???) checks with
is_int() calls. It was done using following command
+ manual review and reverts in libknot/test_control.c.

$ find -name '*.c' | xargs sed -i 's#ok(ret == \(KNOT_E[0-9A-Z_]\+\),#is_int(\1, ret,#'
2017-01-30 16:47:34 +01:00
Daniel Salzman
f4e5906768 tests: move contrib and libknot tests to separate subdirectories 2016-06-22 11:14:43 +02:00
Renamed from tests/yparser.c (Browse further)