LCOV - code coverage report
Current view: top level - tests/examples/manual - init.c (source / functions) Hit Total Coverage
Test: GStreamer 0.10.32.1 Lines: 7 10 70.0 %
Date: 2011-03-25 Functions: 1 1 100.0 %
Branches: 1 4 25.0 %

           Branch data     Line data    Source code
       1                 :            : 
       2                 :            : /*** block  from ../../../docs/manual/basics-init.xml ***/
       3                 :            : #include <stdio.h>
       4                 :            : #include <gst/gst.h>
       5                 :            : 
       6                 :            : int
       7                 :          1 : main (int   argc,
       8                 :            :       char *argv[])
       9                 :            : {
      10                 :            :   const gchar *nano_str;
      11                 :            :   guint major, minor, micro, nano;
      12                 :            : 
      13                 :          1 :   gst_init (&argc, &argv);
      14                 :            : 
      15                 :          1 :   gst_version (&major, &minor, &micro, &nano);
      16                 :            : 
      17         [ +  - ]:          1 :   if (nano == 1)
      18                 :          1 :     nano_str = "(CVS)";
      19         [ #  # ]:          0 :   else if (nano == 2)
      20                 :          0 :     nano_str = "(Prerelease)";
      21                 :            :   else
      22                 :          0 :     nano_str = "";
      23                 :            : 
      24                 :          1 :   printf ("This program is linked against GStreamer %d.%d.%d %s\n",
      25                 :            :           major, minor, micro, nano_str);
      26                 :            : 
      27                 :          1 :   return 0;
      28                 :            : }

Generated by: LCOV version 1.9