LCOV - code coverage report
Current view: top level - dbe/src/internal - Validator.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 20 0
Test Date: 2026-07-12 15:23:06 Functions: 0.0 % 4 0

            Line data    Source code
       1              : // DUNE DAQ modification notice:
       2              : // This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
       3              : // Fork baseline commit: dbe-02-12-17 (2022-05-12).
       4              : // Renamed since fork: no.
       5              : 
       6              : /// Including DBE
       7              : #include "dbe/Validator.hpp"
       8              : 
       9            0 : dbe::ValidatorAcceptMatch::ValidatorAcceptMatch ( QVariant & Storage, QObject * parent )
      10            0 :   : QValidator ( parent )
      11              : {
      12            0 :   List = Storage.toStringList();
      13            0 : }
      14              : 
      15            0 : QValidator::State dbe::ValidatorAcceptMatch::validate ( QString & Input,
      16              :                                                         int & Position ) const
      17              : {
      18            0 :   Q_UNUSED ( Position )
      19              : 
      20            0 :   for ( const QString & Name : List )
      21              :   {
      22            0 :     if ( Name.compare ( Input ) == 0 )
      23              :     {
      24            0 :       return QValidator::Acceptable;
      25              :     }
      26              :   }
      27              : 
      28            0 :   return QValidator::Intermediate;
      29              : }
      30              : 
      31            0 : dbe::ValidatorAcceptNoMatch::ValidatorAcceptNoMatch ( QVariant & Storage, QObject * parent )
      32            0 :   : QValidator ( parent )
      33              : {
      34            0 :   List = Storage.toStringList();
      35            0 : }
      36              : 
      37            0 : QValidator::State dbe::ValidatorAcceptNoMatch::validate ( QString & Input,
      38              :                                                           int & Position ) const
      39              : {
      40            0 :   Q_UNUSED ( Position )
      41              : 
      42            0 :   for ( const QString & Name : List )
      43              :   {
      44            0 :     if ( Name.compare ( Input ) == 0 )
      45              :     {
      46            0 :       return QValidator::Intermediate;
      47              :     }
      48              :   }
      49              : 
      50            0 :   return QValidator::Acceptable;
      51              : }
        

Generated by: LCOV version 2.0-1