Matter SDK Coverage Report
Current view: top level - ble - BleUUID.cpp (source / functions) Coverage Total Hit
Test: SHA:b879ecb8e99e175eea0a293a888bda853da2b19c Lines: 100.0 % 4 4
Test Date: 2025-01-17 19:00:11 Functions: 100.0 % 1 1

            Line data    Source code
       1              : /*
       2              :  *
       3              :  *    Copyright (c) 2020 Project CHIP Authors
       4              :  *    Copyright (c) 2014-2017 Nest Labs, Inc.
       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              : #define _CHIP_BLE_BLE_H
      20              : #include "BleUUID.h"
      21              : 
      22              : #include <cctype>
      23              : #include <cstdint>
      24              : #include <cstring>
      25              : 
      26              : namespace chip {
      27              : namespace Ble {
      28              : 
      29           86 : bool UUIDsMatch(const ChipBleUUID * idOne, const ChipBleUUID * idTwo)
      30              : {
      31           86 :     if ((idOne == nullptr) || (idTwo == nullptr))
      32              :     {
      33            1 :         return false;
      34              :     }
      35           85 :     return (memcmp(idOne->bytes, idTwo->bytes, 16) == 0);
      36              : }
      37              : 
      38              : } /* namespace Ble */
      39              : } /* namespace chip */
        

Generated by: LCOV version 2.0-1