diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-11-17 12:46:59 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-19 08:26:10 -0500 |
commit | aa1d767e6b98efa4ffa7d39dba2272949aae2f65 (patch) | |
tree | 9c63a34ca34cd143bb2fa00bd40b1ff769248c57 /src | |
parent | 426c9561c5f5bc5f38a42f3e46437db59fcdc7c0 (diff) | |
download | tor-aa1d767e6b98efa4ffa7d39dba2272949aae2f65.tar.gz tor-aa1d767e6b98efa4ffa7d39dba2272949aae2f65.zip |
Aim for 100% test coverage on nodefamily.c
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_nodelist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/test_nodelist.c b/src/test/test_nodelist.c index 2dbd949b7d..7e0df56df5 100644 --- a/src/test/test_nodelist.c +++ b/src/test/test_nodelist.c @@ -259,6 +259,10 @@ test_nodelist_nodefamily(void *arg) nodefamily_t *nf2 = NULL; nodefamily_t *nf3 = NULL; + enc = nodefamily_format(NULL); + tt_str_op(enc, OP_EQ, ""); + tor_free(enc); + /* Make sure that sorting and de-duplication work. */ tor_asprintf(&enc, "$%s hello", h1); nf1 = nodefamily_parse(enc, NULL, 0); @@ -361,6 +365,7 @@ test_nodelist_nodefamily(void *arg) nodefamily_free(nf1); nodefamily_free(nf2); nodefamily_free(nf3); + nodefamily_free_all(); } static void |