LCOV - code coverage report
Current view: top level - glib/glib/tests - max-version.c (source / functions) Hit Total Coverage
Test: unnamed Lines: 6 6 100.0 %
Date: 2024-04-23 05:16:05 Functions: 2 2 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * Copyright 2022 Collabora Ltd.
       3                 :            :  * SPDX-License-Identifier: LGPL-2.1-or-later
       4                 :            :  *
       5                 :            :  * This library is free software; you can redistribute it and/or
       6                 :            :  * modify it under the terms of the GNU Lesser General Public
       7                 :            :  * License as published by the Free Software Foundation; either
       8                 :            :  * version 2.1 of the License, or (at your option) any later version.
       9                 :            :  *
      10                 :            :  * This library 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.  See the GNU
      13                 :            :  * Lesser General Public License for more details.
      14                 :            :  *
      15                 :            :  * You should have received a copy of the GNU Lesser General
      16                 :            :  * Public License along with this library; if not, see
      17                 :            :  * <http://www.gnu.org/licenses/>.
      18                 :            :  */
      19                 :            : 
      20                 :            : #ifndef GLIB_VERSION_MAX_ALLOWED
      21                 :            : /* This is the oldest version macro available */
      22                 :            : #define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_26
      23                 :            : #define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_26
      24                 :            : #endif
      25                 :            : 
      26                 :            : /* All the headers that can validly be included in third-party code */
      27                 :            : #include <glib.h>
      28                 :            : #include <glib/gi18n.h>
      29                 :            : #include <glib/gprintf.h>
      30                 :            : #include <glib/gstdio.h>
      31                 :            : 
      32                 :            : #ifdef G_OS_UNIX
      33                 :            : #include <glib-unix.h>
      34                 :            : #endif
      35                 :            : 
      36                 :            : static void
      37                 :          1 : nothing (void)
      38                 :            : {
      39                 :            :   /* This doesn't really do anything: the real "test" is at compile time. */
      40                 :          1 : }
      41                 :            : 
      42                 :            : int
      43                 :          1 : main (int   argc,
      44                 :            :       char *argv[])
      45                 :            : {
      46                 :          1 :   g_test_init (&argc, &argv, NULL);
      47                 :            : 
      48                 :          1 :   g_test_add_func ("/max-version/tested-at-compile-time", nothing);
      49                 :          1 :   return g_test_run ();
      50                 :            : }

Generated by: LCOV version 1.14