LCOV - code coverage report
Current view: top level - Python - getversion.c (source / functions) Hit Total Coverage
Test: CPython 3.12 LCOV report [commit acb105a7c1f] Lines: 3 3 100.0 %
Date: 2022-07-20 13:12:14 Functions: 1 1 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : 
       2                 :            : /* Return the full version string. */
       3                 :            : 
       4                 :            : #include "Python.h"
       5                 :            : 
       6                 :            : #include "patchlevel.h"
       7                 :            : 
       8                 :            : const char *
       9                 :       3157 : Py_GetVersion(void)
      10                 :            : {
      11                 :            :     static char version[250];
      12                 :       3157 :     PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s",
      13                 :            :                   PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler());
      14                 :       3157 :     return version;
      15                 :            : }
      16                 :            : 
      17                 :            : // Export the Python hex version as a constant.
      18                 :            : const unsigned long Py_Version = PY_VERSION_HEX;

Generated by: LCOV version 1.14