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

          Line data    Source code
       1             : #ifndef TEST_AS2JS_LEXER_H
       2             : #define TEST_AS2JS_LEXER_H
       3             : /* test_as2js_lexer.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          40 : class As2JsLexerUnitTests : public CPPUNIT_NS::TestFixture
      43             : {
      44           6 :     CPPUNIT_TEST_SUITE( As2JsLexerUnitTests );
      45           3 :         CPPUNIT_TEST( test_invalid_pointers );
      46           3 :         CPPUNIT_TEST( test_tokens );
      47           3 :         CPPUNIT_TEST( test_valid_strings );
      48           3 :         CPPUNIT_TEST( test_invalid_strings );
      49           3 :         CPPUNIT_TEST( test_invalid_numbers );
      50           3 :         CPPUNIT_TEST( test_identifiers );
      51           3 :         CPPUNIT_TEST( test_invalid_input );
      52           3 :         CPPUNIT_TEST( test_mixed_tokens );
      53          15 :     CPPUNIT_TEST_SUITE_END();
      54             : 
      55             : public:
      56             :     //void setUp();
      57             : 
      58             : protected:
      59             :     void test_invalid_pointers();
      60             :     void test_tokens();
      61             :     void test_valid_strings();
      62             :     void test_invalid_strings();
      63             :     void test_invalid_numbers();
      64             :     void test_identifiers();
      65             :     void test_invalid_input();
      66             :     void test_mixed_tokens();
      67             : };
      68             : 
      69             : #endif
      70             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.10