LCOV - code coverage report
Current view: top level - src/esys/repo/tui - ftxui_link_probe.cpp (source / functions) Hit Total Coverage
Test: esysrepo_coverage.info Lines: 0 4 0.0 %
Date: 2026-08-01 10:43:40 Functions: 0 1 0.0 %

          Line data    Source code
       1             : /*!
       2             :  * \file esys/repo/tui/ftxui_link_probe.cpp
       3             :  * \brief Tiny FTXUI link probe for the optional TUI object library
       4             :  *
       5             :  * \cond
       6             :  * __legal_b__
       7             :  *
       8             :  * Copyright (c) 2026 Michel Gillet
       9             :  * Distributed under the MIT License.
      10             :  * (See accompanying file LICENSE.txt or
      11             :  * copy at https://opensource.org/licenses/MIT)
      12             :  *
      13             :  * __legal_e__
      14             :  * \endcond
      15             :  *
      16             :  */
      17             : 
      18             : #include "esys/repo/esysrepo_prec.h"
      19             : #include "esys/repo/tui/ftxui_link_probe.h"
      20             : 
      21             : #include <ftxui/screen/screen.hpp>
      22             : 
      23             : namespace esys::repo::tui
      24             : {
      25             : 
      26           0 : int ftxui_link_probe()
      27             : {
      28             :     // Touch a real FTXUI symbol so the smoke target fails to link without the dep.
      29           0 :     auto screen = ftxui::Screen::Create(ftxui::Dimension::Fixed(8), ftxui::Dimension::Fixed(1));
      30           0 :     return screen.dimx();
      31           0 : }
      32             : 
      33             : } // namespace esys::repo::tui

Generated by: LCOV version 1.14