twitter / twemproxy

A fast, light-weight proxy for memcached and redis
Apache License 2.0
12.15k stars 2.06k forks source link

Add C unit tests of rejecting malformed requests/responses #633

Closed TysonAndre closed 3 years ago

TysonAndre commented 3 years ago

src/test_all.c currently only tests parsing valid requests/responses. Add a test of the parser rejecting invalid commands with too many arguments, forbidden/unexpected characters, etc