LCOV - code coverage report
Current view: top level - tests - test_as2js_stream.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 16 16 100.0 %
Date: 2014-11-22 Functions: 9 9 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef TEST_AS2JS_STREAM_H
       2             : #define TEST_AS2JS_STREAM_H
       3             : /* test_as2hs_stream.h -- written by Alexis WILKE for Made to Order Software Corp. (c) 2005-2014 */
       4             : 
       5             : /*
       6             : 
       7             : Copyright (c) 2005-2014 Made to Order Software Corp.
       8             : 
       9             : http://snapwebsites.org/project/as2js
      10             : 
      11             : Permission is hereby granted, free of charge, to any
      12             : person obtaining a copy of this software and
      13             : associated documentation files (the "Software"), to
      14             : deal in the Software without restriction, including
      15             : without limitation the rights to use, copy, modify,
      16             : merge, publish, distribute, sublicense, and/or sell
      17             : copies of the Software, and to permit persons to whom
      18             : the Software is furnished to do so, subject to the
      19             : following conditions:
      20             : 
      21             : The above copyright notice and this permission notice
      22             : shall be included in all copies or substantial
      23             : portions of the Software.
      24             : 
      25             : THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
      26             : ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
      27             : LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
      28             : FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
      29             : EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
      30             : LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
      31             : WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
      32             : ARISING FROM, OUT OF OR IN CONNECTION WITH THE
      33             : SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
      34             : SOFTWARE.
      35             : 
      36             : */
      37             : 
      38             : 
      39             : #include <cppunit/extensions/HelperMacros.h>
      40             : 
      41             : 
      42          67 : class As2JsStreamUnitTests : public CPPUNIT_NS::TestFixture
      43             : {
      44           6 :     CPPUNIT_TEST_SUITE( As2JsStreamUnitTests );
      45           3 :         CPPUNIT_TEST( test_filter_iso88591 );
      46           3 :         CPPUNIT_TEST( test_filter_utf8 );
      47           3 :         CPPUNIT_TEST( test_filter_utf16 );
      48           3 :         CPPUNIT_TEST( test_filter_utf32 );
      49           3 :         CPPUNIT_TEST( test_filter_detect );
      50           3 :         CPPUNIT_TEST( test_string_input );
      51           3 :         CPPUNIT_TEST( test_stdin );
      52           3 :         CPPUNIT_TEST( test_file );
      53           3 :         CPPUNIT_TEST( test_bad_impl );
      54           3 :         CPPUNIT_TEST( test_stdout );
      55           3 :         CPPUNIT_TEST( test_output );
      56           3 :         CPPUNIT_TEST( test_string_output );
      57             : 
      58             :         // keep this one last because we lose stdout after that...
      59             :         // (we may be able to fix the problem with a fork()...)
      60           3 :         CPPUNIT_TEST( test_stdout_destructive );
      61          15 :     CPPUNIT_TEST_SUITE_END();
      62             : 
      63             : public:
      64             :     //void setUp();
      65             : 
      66             : protected:
      67             :     void test_filter_iso88591();
      68             :     void test_filter_utf8();
      69             :     void test_filter_utf16();
      70             :     void test_filter_utf32();
      71             :     void test_filter_detect();
      72             :     void test_string_input();
      73             :     void test_stdin();
      74             :     void test_file();
      75             :     void test_bad_impl();
      76             :     void test_stdout();
      77             :     void test_output();
      78             :     void test_string_output();
      79             : 
      80             :     // keep this one last because we lose stdout after that...
      81             :     void test_stdout_destructive();
      82             : };
      83             : 
      84             : #endif
      85             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.10