Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

/Users/trevorw/projects/release/covered-0.7.4/src/assertion.h

Go to the documentation of this file.
00001 #ifndef __ASSERTION_H__
00002 #define __ASSERTION_H__
00003 
00004 /*
00005  Copyright (c) 2006-2009 Trevor Williams
00006 
00007  This program is free software; you can redistribute it and/or modify
00008  it under the terms of the GNU General Public License as published by the Free Software
00009  Foundation; either version 2 of the License, or (at your option) any later version.
00010 
00011  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
00012  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00013  See the GNU General Public License for more details.
00014 
00015  You should have received a copy of the GNU General Public License along with this program;
00016  if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017 */
00018 
00027 #include <stdio.h>
00028 
00029 #include "defines.h"
00030 
00031 
00033 void assertion_parse( const char* arg );
00034 
00036 void assertion_parse_attr(
00037   attr_param*      ap,
00038   const func_unit* funit,
00039   bool             exclude
00040 );
00041 
00043 void assertion_get_stats(
00044             const func_unit* funit,
00045   /*@out@*/ unsigned int*    hit,
00046   /*@out@*/ unsigned int*    excluded,
00047   /*@out@*/ unsigned int*    total
00048 );
00049 
00051 void assertion_report( FILE* ofile, bool verbose );
00052 
00054 void assertion_get_funit_summary(
00055             func_unit*    funit,
00056   /*@out@*/ unsigned int* hit,
00057   /*@out@*/ unsigned int* excluded,
00058   /*@out@*/ unsigned int* total
00059 );
00060 
00062 void assertion_collect(
00063             func_unit*    funit,
00064             int           cov,
00065   /*@out@*/ char***       inst_names,
00066   /*@out@*/ int**         excludes,
00067   /*@out@*/ unsigned int* inst_size
00068 );
00069 
00071 void assertion_get_coverage(
00072             const func_unit* funit,
00073             const char*      inst_name,
00074   /*@out@*/ char**           assert_mod,
00075   /*@out@*/ str_link**       cp_head,
00076   /*@out@*/ str_link**       cp_tail
00077 );
00078 
00079 #endif
00080 

Generated on Wed Jun 17 22:19:19 2009 for Covered by doxygen 1.3.4