LCOV - code coverage report
Current view: top level - test - proactor_buf.c (source / functions) Hit Total Coverage
Test: all.info Lines: 11 11 100.0 %
Date: 2012-09-24 Functions: 1 1 100.0 %
Branches: 5 10 50.0 %

           Branch data     Line data    Source code
       1                 :            : 
       2                 :            : #include "gwrl/proactor.h"
       3                 :            : 
       4                 :         22 : int main(int argc, char ** argv) {
       5                 :         22 :         gwrl * rl = gwrl_create();
       6                 :         22 :         gwpr * pr = gwpr_create(rl);
       7                 :         22 :         gwprbuf * buf1 = gwpr_buf_get(pr,128);
       8                 :         22 :         gwprbuf * buf2 = gwpr_buf_get(pr,256);
       9                 :         22 :         gwprbuf * buf3 = gwpr_buf_get(pr,512);
      10                 :            :         
      11 [ +  - ][ -  + ]:         22 :         assert(buf1 && buf2 && buf3);
      12         [ -  + ]:         22 :         assert(buf1->bufsize == 128);
      13         [ -  + ]:         22 :         assert(buf2->bufsize == 256);
      14         [ -  + ]:         22 :         assert(buf3->bufsize == 512);
      15                 :            : 
      16                 :         22 :         return 0;
      17                 :            : }

Generated by: LCOV version 1.9