LCOV - code coverage report
Current view: top level - app/fdctl - version.c (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 6 9 66.7 %
Date: 2026-06-29 05:51:35 Functions: 1 2 50.0 %

          Line data    Source code
       1             : #include "../../util/fd_util.h"
       2             : #include "version.h"
       3             : 
       4             : /* Legacy fdctl-compatible version symbols */
       5             : ulong const fdctl_major_version = FDCTL_MAJOR_VERSION;
       6             : ulong const fdctl_minor_version = FDCTL_MINOR_VERSION;
       7             : ulong const fdctl_patch_version = FDCTL_PATCH_VERSION;
       8             : uint        fdctl_commit_ref; /* initialized at boot */
       9             : 
      10             : /* fd_version */
      11             : ulong const fd_major_version = FDCTL_MAJOR_VERSION;
      12             : ulong const fd_minor_version = FDCTL_MINOR_VERSION;
      13             : ulong const fd_patch_version = FDCTL_PATCH_VERSION;
      14             : 
      15             : void
      16             : fd_version_private_boot( int *    pargc,
      17        2647 :                          char *** pargv ) {
      18        2647 :   (void)pargc; (void)pargv;
      19        2647 :   fd_version_cstr = FDCTL_VERSION_CSTR;
      20        2647 :   fd_version_private_commit_ref_init();
      21        2647 :   fdctl_commit_ref = fd_commit_ref_u32;
      22        2647 : }
      23             : 
      24             : __attribute__((constructor))
      25             : static void
      26           0 : fd_version_constructor( void ) {
      27             :   /* in case this library is used directly from Rust apps which do not
      28             :      call fd_boot */
      29           0 :   fd_version_private_boot( NULL, NULL );
      30           0 : }

Generated by: LCOV version 1.14