Coverage Report

Created: 2026-09-24 06:58

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/connectedhomeip/src/app/clusters/on-off-server/codegen/mode-base-integration.h
Line
Count
Source
1
/**
2
 *    Copyright (c) 2020-2025 Project CHIP Authors
3
 *
4
 *    Licensed under the Apache License, Version 2.0 (the "License");
5
 *    you may not use this file except in compliance with the License.
6
 *    You may obtain a copy of the License at
7
 *
8
 *        http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *    Unless required by applicable law or agreed to in writing, software
11
 *    distributed under the License is distributed on an "AS IS" BASIS,
12
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *    See the License for the specific language governing permissions and
14
 *    limitations under the License.
15
 */
16
#pragma once
17
18
#include <app/util/config.h>
19
#include <lib/core/DataModelTypes.h>
20
21
namespace chip::app::Clusters::OnOff::Internal::ModeBase {
22
23
#ifdef MATTER_DM_PLUGIN_MODE_BASE
24
25
/**
26
 * For all ModeBase alias clusters on the given endpoint, if the OnOff feature is supported and
27
 * the OnMode attribute is set, update the CurrentMode attribute value to the OnMode value.
28
 * @param endpoint
29
 */
30
void UpdateCurrentModeToOnMode(chip::EndpointId endpoint);
31
32
#else
33
34
0
inline void UpdateCurrentModeToOnMode(chip::EndpointId endpoint) {}
35
36
#endif // MATTER_DM_PLUGIN_MODE_BASE
37
38
} // namespace chip::app::Clusters::OnOff::Internal::ModeBase