LCOV - code coverage report
Current view: top level - app/fdctl - version.c (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 0 5 0.0 %
Date: 2025-03-10 12:29:05 Functions: 0 1 0.0 %

          Line data    Source code
       1             : #include "fdctl.h"
       2             : 
       3             : #include "version.h"
       4             : 
       5             : #ifndef FDCTL_PATCH_VERSION
       6             : #define FDCTL_PATCH_VERSION 9999
       7             : #endif
       8             : #ifndef FDCTL_COMMIT_REF_CSTR
       9             : #define FDCTL_COMMIT_REF_CSTR "0000000000000000000000000000000000000000"
      10             : #endif
      11             : #ifndef FDCTL_COMMIT_REF_U32
      12             : #define FDCTL_COMMIT_REF_U32 0x0
      13             : #endif
      14             : 
      15             : ulong const fdctl_major_version     = FDCTL_MAJOR_VERSION;
      16             : ulong const fdctl_minor_version     = FDCTL_MINOR_VERSION;
      17             : ulong const fdctl_patch_version     = FDCTL_PATCH_VERSION;
      18             : uint  const fdctl_commit_ref        = FDCTL_COMMIT_REF_U32;
      19             : char  const  fdctl_version_string[] = FD_EXPAND_THEN_STRINGIFY(FDCTL_MAJOR_VERSION) "." FD_EXPAND_THEN_STRINGIFY(FDCTL_MINOR_VERSION) "." FD_EXPAND_THEN_STRINGIFY(FDCTL_PATCH_VERSION);
      20             : 
      21             : 
      22             : void
      23             : version_cmd_fn( args_t *         args,
      24           0 :                 config_t * const config ) {
      25           0 :   (void)args;
      26           0 :   (void)config;
      27             : 
      28           0 :   FD_LOG_STDOUT(( "%s (%s)\n", fdctl_version_string, FDCTL_COMMIT_REF_CSTR ));
      29           0 : }

Generated by: LCOV version 1.14