LCOV - code coverage report
Current view: top level - bindings/enums - TransformationType.py.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 10 10 100.0 %
Date: 2025-05-02 21:49:25 Functions: 1 1 100.0 %

          Line data    Source code
       1             : // SPDX-FileCopyrightText: 2024 Pairinteraction Developers
       2             : // SPDX-License-Identifier: LGPL-3.0-or-later
       3             : 
       4             : #include "./TransformationType.py.hpp"
       5             : 
       6             : #include "pairinteraction/enums/TransformationType.hpp"
       7             : 
       8             : #include <nanobind/nanobind.h>
       9             : 
      10             : namespace nb = nanobind;
      11             : using namespace pairinteraction;
      12             : 
      13           1 : void bind_transformation_type(nb::module_ &m) {
      14           2 :     nb::enum_<TransformationType>(m, "TransformationType", nb::is_arithmetic())
      15           1 :         .value("IDENTITY", TransformationType::IDENTITY)
      16           1 :         .value("SORT_BY_KET", TransformationType::SORT_BY_KET)
      17           1 :         .value("SORT_BY_QUANTUM_NUMBER_F", TransformationType::SORT_BY_QUANTUM_NUMBER_F)
      18           1 :         .value("SORT_BY_QUANTUM_NUMBER_M", TransformationType::SORT_BY_QUANTUM_NUMBER_M)
      19           1 :         .value("SORT_BY_PARITY", TransformationType::SORT_BY_PARITY)
      20           1 :         .value("SORT_BY_ENERGY", TransformationType::SORT_BY_ENERGY)
      21           1 :         .value("ROTATE", TransformationType::ROTATE)
      22             :         .value("ARBITRARY", TransformationType::ARBITRARY);
      23           1 : }

Generated by: LCOV version 1.16