LCOV - code coverage report
Current view: top level - tests - test.hpp (source / functions) Hit Total Coverage
Test: wlog-coverage.info Lines: 3 4 75.0 %
Date: 2019-09-12 Functions: 1 1 100.0 %

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : #include <iostream>
       4             : #include <wlog/init.hpp>
       5          29 : inline bool test( bool expr, const std::string& file, int line)
       6             : {
       7          29 :   if ( !expr )
       8           0 :     std::cerr << "ERROR in " << file << ":" << line << std::endl;
       9          29 :   return expr;
      10             : }
      11             : 
      12             : #define TEST( X ) if ( !test( X, __FILE__, __LINE__ ) ) return __LINE__;

Generated by: LCOV version 1.10