diff options
author | Nathan Moinvaziri <nathan@solidstatenetworks.com> | 2021-07-11 16:59:21 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2021-12-24 12:52:14 +0100 |
commit | 3d7381f4e3cefb27193e5cede9af20ab6d50cfd4 (patch) | |
tree | e71cb1d8bc121b31586485897f672cc9b51b7dce /test/example.c | |
parent | 13f155ea25f63d791696492bdeef89320fb6b6a7 (diff) |
Fill out gzheader before calling deflateSetHeader for better code coverage in example.
Diffstat (limited to 'test/example.c')
-rw-r--r-- | test/example.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/example.c b/test/example.c index 90de07e..148b276 100644 --- a/test/example.c +++ b/test/example.c @@ -939,6 +939,12 @@ void test_deflate_set_header(unsigned char *compr, size_t comprLen) { CHECK_ERR(err, "deflateInit2"); head->text = 1; + head->comment = (uint8_t *)"comment"; + head->name = (uint8_t *)"name"; + head->hcrc = 1; + head->extra = (uint8_t *)"extra"; + head->extra_len = (uint32_t)strlen((const char *)head->extra); + err = PREFIX(deflateSetHeader)(&c_stream, head); CHECK_ERR(err, "deflateSetHeader"); if (err == Z_OK) { |