LCOV - code coverage report
Current view: top level - libc/test - run-ctype-test.c (source / functions) Hit Total Coverage
Test: skiboot.info Lines: 12 12 100.0 %
Date: 2024-01-02 21:04:04 Functions: 6 6 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
       2                 :            : /*
       3                 :            :  * Copyright 2013-2015 IBM Corp.
       4                 :            :  *
       5                 :            :  * This file is run with the skiboot libc files rather than system libc.
       6                 :            :  * This means we have a bit of "fun" with actually executing the tests on
       7                 :            :  * the host.
       8                 :            :  * Patches to make this less ugly are very welcome.
       9                 :            :  */
      10                 :            : 
      11                 :            : #include <config.h>
      12                 :            : #include <stdarg.h>
      13                 :            : 
      14                 :            : #include "../ctype/isdigit.c"
      15                 :            : #include "../ctype/isprint.c"
      16                 :            : #include "../ctype/isspace.c"
      17                 :            : #include "../ctype/isxdigit.c"
      18                 :            : #include "../ctype/tolower.c"
      19                 :            : #include "../ctype/toupper.c"
      20                 :            : 
      21                 :            : int skiboot_isdigit(int ch);
      22                 :            : int skiboot_isprint(int ch);
      23                 :            : int skiboot_isspace(int ch);
      24                 :            : int skiboot_isxdigit(int ch);
      25                 :            : int skiboot_tolower(int ch);
      26                 :            : int skiboot_toupper(int ch);
      27                 :            : 
      28                 :       1345 : int skiboot_isdigit(int ch)
      29                 :            : {
      30                 :       1345 :         return isdigit(ch);
      31                 :            : }
      32                 :            : 
      33                 :       1345 : int skiboot_isprint(int ch)
      34                 :            : {
      35                 :       1345 :         return isprint(ch);
      36                 :            : }
      37                 :            : 
      38                 :       1350 : int skiboot_isspace(int ch)
      39                 :            : {
      40                 :       1350 :         return isspace(ch);
      41                 :            : }
      42                 :            : 
      43                 :       1355 : int skiboot_isxdigit(int ch)
      44                 :            : {
      45                 :       1355 :         return isxdigit(ch);
      46                 :            : }
      47                 :            : 
      48                 :       1285 : int skiboot_tolower(int ch)
      49                 :            : {
      50                 :       1285 :         return tolower(ch);
      51                 :            : }
      52                 :            : 
      53                 :       1285 : int skiboot_toupper(int ch)
      54                 :            : {
      55                 :       1285 :         return toupper(ch);
      56                 :            : }

Generated by: LCOV version 1.14