LCOV - code coverage report
Current view: top level - regression/issue_647 - repro.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 8 8 100.0 %
Date: 2023-02-14 20:10:26 Functions: 1 1 100.0 %

          Line data    Source code
       1             : #include <pb_decode.h>
       2             : #include <unittests.h>
       3             : #include <malloc_wrappers.h>
       4             : #include "repro.pb.h"
       5             : 
       6           1 : int main() {
       7           1 :   const uint8_t data[] = {0x08, 0x08, 0x2d};
       8           1 :   int status = 0;
       9           1 :   Repro repro = Repro_init_zero;
      10             : 
      11           1 :   pb_istream_t stream = pb_istream_from_buffer(data, sizeof(data));
      12           1 :   TEST(!pb_decode(&stream, Repro_fields, &repro));
      13           1 :   TEST(get_alloc_count() == 0);
      14             : 
      15           1 :   return status;
      16             : }

Generated by: LCOV version 1.14