Coverage Report

Created: 2026-03-27 06:51

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/examples/all-clusters-app/all-clusters-common/src/boolcfg-stub.cpp
Line
Count
Source
1
/*
2
 *
3
 *    Copyright (c) 2023 Project CHIP Authors
4
 *
5
 *    Licensed under the Apache License, Version 2.0 (the "License");
6
 *    you may not use this file except in compliance with the License.
7
 *    You may obtain a copy of the License at
8
 *
9
 *        http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 *    Unless required by applicable law or agreed to in writing, software
12
 *    distributed under the License is distributed on an "AS IS" BASIS,
13
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 *    See the License for the specific language governing permissions and
15
 *    limitations under the License.
16
 */
17
18
#include <app/clusters/boolean-state-configuration-server/BooleanStateConfigurationTestEventTriggerHandler.h>
19
#include <app/clusters/boolean-state-configuration-server/boolean-state-configuration-server.h>
20
21
#include <platform/CHIPDeviceLayer.h>
22
23
using namespace chip;
24
using namespace chip::app::Clusters::BooleanStateConfiguration;
25
using namespace chip::DeviceLayer;
26
27
bool HandleBooleanStateConfigurationTestEventTrigger(uint64_t eventTrigger)
28
0
{
29
0
    BooleanStateConfigurationTrigger trigger = static_cast<BooleanStateConfigurationTrigger>(eventTrigger);
30
31
0
    switch (trigger)
32
0
    {
33
0
    case BooleanStateConfigurationTrigger::kSensorTrigger:
34
0
        ChipLogProgress(Support, "[BooleanStateConfiguration-Test-Event] => Trigger sensor");
35
0
        TEMPORARY_RETURN_IGNORED SetAllEnabledAlarmsActive(1);
36
0
        break;
37
38
0
    case BooleanStateConfigurationTrigger::kSensorUntrigger:
39
0
        ChipLogProgress(Support, "[BooleanStateConfiguration-Test-Event] => Untrigger sensor");
40
0
        TEMPORARY_RETURN_IGNORED ClearAllAlarms(1);
41
0
        break;
42
43
0
    default:
44
45
0
        return false;
46
0
    }
47
48
0
    return true;
49
0
}