LCOV - code coverage report
Current view: top level - glib/glib/tests - test-spawn-echo.c (source / functions) Hit Total Coverage
Test: unnamed Lines: 4 4 100.0 %
Date: 2024-04-16 05:15:53 Functions: 1 1 100.0 %
Branches: 2 2 100.0 %

           Branch data     Line data    Source code
       1                 :            : /* 
       2                 :            :  * Copyright (C) 2011 Red Hat, Inc.
       3                 :            :  *
       4                 :            :  * SPDX-License-Identifier: LicenseRef-old-glib-tests
       5                 :            :  *
       6                 :            :  * This work is provided "as is"; redistribution and modification
       7                 :            :  * in whole or in part, in any medium, physical or electronic is
       8                 :            :  * permitted without restriction.
       9                 :            :  *
      10                 :            :  * This work is distributed in the hope that it will be useful,
      11                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      12                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      13                 :            :  *
      14                 :            :  * In no event shall the authors or contributors be liable for any
      15                 :            :  * direct, indirect, incidental, special, exemplary, or consequential
      16                 :            :  * damages (including, but not limited to, procurement of substitute
      17                 :            :  * goods or services; loss of use, data, or profits; or business
      18                 :            :  * interruption) however caused and on any theory of liability, whether
      19                 :            :  * in contract, strict liability, or tort (including negligence or
      20                 :            :  * otherwise) arising in any way out of the use of this software, even
      21                 :            :  * if advised of the possibility of such damage.
      22                 :            :  *
      23                 :            :  * Author: Colin Walters <walters@verbum.org> 
      24                 :            :  */
      25                 :            : 
      26                 :            : #include "config.h"
      27                 :            : 
      28                 :            : #include "glib.h"
      29                 :            : 
      30                 :            : int
      31                 :         87 : main (int   argc,
      32                 :            :       char *argv[])
      33                 :            : {
      34                 :            :   int i;
      35         [ +  + ]:        188 :   for (i = 1; i < argc; i++)
      36                 :            :     {
      37                 :        101 :       g_print ("%s", argv[i]);
      38                 :            :     }
      39                 :            : 
      40                 :         87 :   return 0;
      41                 :            : }

Generated by: LCOV version 1.14