LCOV - code coverage report
Current view: top level - bindings/tools - run_unit_tests.py.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 6 7 85.7 %
Date: 2025-09-29 10:27:57 Functions: 2 2 100.0 %

          Line data    Source code
       1             : // SPDX-FileCopyrightText: 2024 PairInteraction Developers
       2             : // SPDX-License-Identifier: LGPL-3.0-or-later
       3             : 
       4             : #include "./run_unit_tests.py.hpp"
       5             : 
       6             : #include "pairinteraction/tools/run_unit_tests.hpp"
       7             : 
       8             : #include <nanobind/nanobind.h>
       9             : #include <nanobind/stl/filesystem.h>
      10             : 
      11             : namespace nb = nanobind;
      12             : using namespace pairinteraction;
      13             : 
      14           2 : void bind_run_unit_tests(nb::module_ &m) {
      15           2 :     m.def(
      16             :         "run_unit_tests",
      17           0 :         [](bool download_missing, bool use_cache, std::filesystem::path database_dir) {
      18           1 :             return run_unit_tests(0, nullptr, download_missing, use_cache, std::move(database_dir));
      19             :         },
      20           6 :         nb::arg("download_missing") = false, nb::arg("use_cache") = true,
      21           2 :         nb::arg("database_dir") = "");
      22           2 : }

Generated by: LCOV version 1.16