LCOV - code coverage report
Current view: top level - controller - CommissioningDelegate.cpp (source / functions) Hit Total Coverage
Test: lcov_final.info Lines: 0 72 0.0 %
Date: 2024-02-15 08:20:41 Functions: 0 1 0.0 %

          Line data    Source code
       1             : /*
       2             :  *
       3             :  *    Copyright (c) 2021 Project CHIP Authors
       4             :  *    All rights reserved.
       5             :  *
       6             :  *    Licensed under the Apache License, Version 2.0 (the "License");
       7             :  *    you may not use this file except in compliance with the License.
       8             :  *    You may obtain a copy of the License at
       9             :  *
      10             :  *        http://www.apache.org/licenses/LICENSE-2.0
      11             :  *
      12             :  *    Unless required by applicable law or agreed to in writing, software
      13             :  *    distributed under the License is distributed on an "AS IS" BASIS,
      14             :  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      15             :  *    See the License for the specific language governing permissions and
      16             :  *    limitations under the License.
      17             :  */
      18             : 
      19             : #include <controller/CommissioningDelegate.h>
      20             : 
      21             : namespace chip {
      22             : namespace Controller {
      23             : 
      24           0 : const char * StageToString(CommissioningStage stage)
      25             : {
      26           0 :     switch (stage)
      27             :     {
      28           0 :     case kError:
      29           0 :         return "Error";
      30             :         break;
      31             : 
      32           0 :     case kSecurePairing:
      33           0 :         return "SecurePairing";
      34             :         break;
      35             : 
      36           0 :     case kReadCommissioningInfo:
      37           0 :         return "ReadCommissioningInfo";
      38             :         break;
      39             : 
      40           0 :     case kReadCommissioningInfo2:
      41           0 :         return "ReadCommissioningInfo2";
      42             :         break;
      43             : 
      44           0 :     case kArmFailsafe:
      45           0 :         return "ArmFailSafe";
      46             :         break;
      47             : 
      48           0 :     case kScanNetworks:
      49           0 :         return "ScanNetworks";
      50             :         break;
      51             : 
      52           0 :     case kConfigRegulatory:
      53           0 :         return "ConfigRegulatory";
      54             :         break;
      55             : 
      56           0 :     case kConfigureUTCTime:
      57           0 :         return "ConfigureUTCTime";
      58             :         break;
      59             : 
      60           0 :     case kConfigureTimeZone:
      61           0 :         return "ConfigureTimeZone";
      62             :         break;
      63             : 
      64           0 :     case kConfigureDSTOffset:
      65           0 :         return "ConfigureDSTOffset";
      66             :         break;
      67             : 
      68           0 :     case kConfigureDefaultNTP:
      69           0 :         return "ConfigureDefaultNTP";
      70             :         break;
      71             : 
      72           0 :     case kSendPAICertificateRequest:
      73           0 :         return "SendPAICertificateRequest";
      74             :         break;
      75             : 
      76           0 :     case kSendDACCertificateRequest:
      77           0 :         return "SendDACCertificateRequest";
      78             :         break;
      79             : 
      80           0 :     case kSendAttestationRequest:
      81           0 :         return "SendAttestationRequest";
      82             :         break;
      83             : 
      84           0 :     case kAttestationVerification:
      85           0 :         return "AttestationVerification";
      86             :         break;
      87             : 
      88           0 :     case kSendOpCertSigningRequest:
      89           0 :         return "SendOpCertSigningRequest";
      90             :         break;
      91             : 
      92           0 :     case kValidateCSR:
      93           0 :         return "ValidateCSR";
      94             :         break;
      95             : 
      96           0 :     case kGenerateNOCChain:
      97           0 :         return "GenerateNOCChain";
      98             :         break;
      99             : 
     100           0 :     case kSendTrustedRootCert:
     101           0 :         return "SendTrustedRootCert";
     102             :         break;
     103             : 
     104           0 :     case kSendNOC:
     105           0 :         return "SendNOC";
     106             :         break;
     107             : 
     108           0 :     case kConfigureTrustedTimeSource:
     109           0 :         return "ConfigureTrustedTimeSource";
     110             :         break;
     111             : 
     112           0 :     case kICDGetRegistrationInfo:
     113           0 :         return "ICDGetRegistrationInfo";
     114             :         break;
     115             : 
     116           0 :     case kICDRegistration:
     117           0 :         return "ICDRegistration";
     118             :         break;
     119             : 
     120           0 :     case kICDSendStayActive:
     121           0 :         return "ICDSendStayActive";
     122             :         break;
     123             : 
     124           0 :     case kWiFiNetworkSetup:
     125           0 :         return "WiFiNetworkSetup";
     126             :         break;
     127             : 
     128           0 :     case kThreadNetworkSetup:
     129           0 :         return "ThreadNetworkSetup";
     130             :         break;
     131             : 
     132           0 :     case kFailsafeBeforeWiFiEnable:
     133           0 :         return "FailsafeBeforeWiFiEnable";
     134             :         break;
     135             : 
     136           0 :     case kFailsafeBeforeThreadEnable:
     137           0 :         return "FailsafeBeforeThreadEnable";
     138             :         break;
     139             : 
     140           0 :     case kWiFiNetworkEnable:
     141           0 :         return "WiFiNetworkEnable";
     142             :         break;
     143             : 
     144           0 :     case kThreadNetworkEnable:
     145           0 :         return "ThreadNetworkEnable";
     146             :         break;
     147             : 
     148           0 :     case kFindOperational:
     149           0 :         return "FindOperational";
     150             :         break;
     151             : 
     152           0 :     case kSendComplete:
     153           0 :         return "SendComplete";
     154             :         break;
     155             : 
     156           0 :     case kCleanup:
     157           0 :         return "Cleanup";
     158             :         break;
     159             : 
     160           0 :     case kNeedsNetworkCreds:
     161           0 :         return "NeedsNetworkCreds";
     162             :         break;
     163             : 
     164           0 :     default:
     165           0 :         return "???";
     166             :         break;
     167             :     }
     168             : }
     169             : 
     170             : } // namespace Controller
     171             : } // namespace chip

Generated by: LCOV version 1.14