LCOV - code coverage report
Current view: top level - tests - tst_symbols.c (source / functions) Hit Total Coverage
Test: GNU Libidn Lines: 81 81 100.0 %
Date: 2015-03-02 11:46:03 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* tst_symbols.c --- Test if all exported symbols are available.
       2             :  * Copyright (C) 2010-2015 Simon Josefsson
       3             :  *
       4             :  * This file is part of GNU Libidn.
       5             :  *
       6             :  * This program is free software: you can redistribute it and/or modify
       7             :  * it under the terms of the GNU General Public License as published by
       8             :  * the Free Software Foundation, either version 3 of the License, or
       9             :  * (at your option) any later version.
      10             :  *
      11             :  * This program is distributed in the hope that it will be useful,
      12             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      13             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14             :  * GNU General Public License for more details.
      15             :  *
      16             :  * You should have received a copy of the GNU General Public License
      17             :  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
      18             :  *
      19             :  */
      20             : 
      21             : #ifdef HAVE_CONFIG_H
      22             : # include "config.h"
      23             : #endif
      24             : 
      25             : #include <assert.h>
      26             : 
      27             : #include <stringprep.h>
      28             : #include <idna.h>
      29             : #include <punycode.h>
      30             : #include <idn-free.h>
      31             : #include <pr29.h>
      32             : #ifdef WITH_TLD
      33             : # include <tld.h>
      34             : #endif
      35             : 
      36             : static void
      37          76 : assert_symbol_exists (const void *p)
      38             : {
      39          76 :   assert (p);
      40          76 : }
      41             : 
      42             : int
      43           1 : main (void)
      44             : {
      45           1 :   assert_symbol_exists ((const void *) idn_free);
      46           1 :   assert_symbol_exists ((const void *) idna_strerror);
      47           1 :   assert_symbol_exists ((const void *) idna_to_ascii_4i);
      48           1 :   assert_symbol_exists ((const void *) idna_to_ascii_4z);
      49           1 :   assert_symbol_exists ((const void *) idna_to_ascii_8z);
      50           1 :   assert_symbol_exists ((const void *) idna_to_ascii_lz);
      51           1 :   assert_symbol_exists ((const void *) idna_to_unicode_44i);
      52           1 :   assert_symbol_exists ((const void *) idna_to_unicode_4z4z);
      53           1 :   assert_symbol_exists ((const void *) idna_to_unicode_8z4z);
      54           1 :   assert_symbol_exists ((const void *) idna_to_unicode_8z8z);
      55           1 :   assert_symbol_exists ((const void *) idna_to_unicode_8zlz);
      56           1 :   assert_symbol_exists ((const void *) idna_to_unicode_lzlz);
      57           1 :   assert_symbol_exists ((const void *) pr29_4);
      58           1 :   assert_symbol_exists ((const void *) pr29_4z);
      59           1 :   assert_symbol_exists ((const void *) pr29_8z);
      60           1 :   assert_symbol_exists ((const void *) pr29_strerror);
      61           1 :   assert_symbol_exists ((const void *) punycode_decode);
      62           1 :   assert_symbol_exists ((const void *) punycode_encode);
      63           1 :   assert_symbol_exists ((const void *) punycode_strerror);
      64           1 :   assert_symbol_exists ((const void *) stringprep);
      65           1 :   assert_symbol_exists ((const void *) stringprep_4i);
      66           1 :   assert_symbol_exists ((const void *) stringprep_4zi);
      67           1 :   assert_symbol_exists ((const void *) stringprep_check_version);
      68           1 :   assert_symbol_exists ((const void *) stringprep_convert);
      69           1 :   assert_symbol_exists ((const void *) stringprep_iscsi);
      70           1 :   assert_symbol_exists ((const void *) stringprep_iscsi_prohibit);
      71           1 :   assert_symbol_exists ((const void *) stringprep_kerberos5);
      72           1 :   assert_symbol_exists ((const void *) stringprep_locale_charset);
      73           1 :   assert_symbol_exists ((const void *) stringprep_locale_to_utf8);
      74           1 :   assert_symbol_exists ((const void *) stringprep_nameprep);
      75           1 :   assert_symbol_exists ((const void *) stringprep_plain);
      76           1 :   assert_symbol_exists ((const void *) stringprep_profile);
      77           1 :   assert_symbol_exists ((const void *) stringprep_profiles);
      78           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_A_1);
      79           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_B_1);
      80           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_B_2);
      81           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_B_3);
      82           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_C_1_1);
      83           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_C_1_2);
      84           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_C_2_1);
      85           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_C_2_2);
      86           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_C_3);
      87           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_C_4);
      88           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_C_5);
      89           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_C_6);
      90           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_C_7);
      91           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_C_8);
      92           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_C_9);
      93           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_D_1);
      94           1 :   assert_symbol_exists ((const void *) stringprep_rfc3454_D_2);
      95           1 :   assert_symbol_exists ((const void *) stringprep_saslprep);
      96           1 :   assert_symbol_exists ((const void *) stringprep_saslprep_space_map);
      97           1 :   assert_symbol_exists ((const void *) stringprep_strerror);
      98           1 :   assert_symbol_exists ((const void *) stringprep_trace);
      99           1 :   assert_symbol_exists ((const void *) stringprep_ucs4_nfkc_normalize);
     100           1 :   assert_symbol_exists ((const void *) stringprep_ucs4_to_utf8);
     101           1 :   assert_symbol_exists ((const void *) stringprep_unichar_to_utf8);
     102           1 :   assert_symbol_exists ((const void *) stringprep_utf8_nfkc_normalize);
     103           1 :   assert_symbol_exists ((const void *) stringprep_utf8_to_locale);
     104           1 :   assert_symbol_exists ((const void *) stringprep_utf8_to_ucs4);
     105           1 :   assert_symbol_exists ((const void *) stringprep_utf8_to_unichar);
     106           1 :   assert_symbol_exists ((const void *) stringprep_xmpp_nodeprep);
     107           1 :   assert_symbol_exists ((const void *) stringprep_xmpp_nodeprep_prohibit);
     108           1 :   assert_symbol_exists ((const void *) stringprep_xmpp_resourceprep);
     109           1 :   assert_symbol_exists ((const void *) tld_check_4);
     110           1 :   assert_symbol_exists ((const void *) tld_check_4t);
     111           1 :   assert_symbol_exists ((const void *) tld_check_4tz);
     112           1 :   assert_symbol_exists ((const void *) tld_check_4z);
     113           1 :   assert_symbol_exists ((const void *) tld_check_8z);
     114           1 :   assert_symbol_exists ((const void *) tld_check_lz);
     115           1 :   assert_symbol_exists ((const void *) tld_default_table);
     116           1 :   assert_symbol_exists ((const void *) tld_get_4);
     117           1 :   assert_symbol_exists ((const void *) tld_get_4z);
     118           1 :   assert_symbol_exists ((const void *) tld_get_table);
     119           1 :   assert_symbol_exists ((const void *) tld_get_z);
     120           1 :   assert_symbol_exists ((const void *) tld_strerror);
     121             : 
     122           1 :   return 0;
     123             : }

Generated by: LCOV version 1.11