• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *   http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #include "test.h"
16 #include "ld_log.h"
17 #include "functionalext.h"
18 
19 typedef void (*TEST_FUN)(void);
20 
21 /**
22  * @tc.name      : ld_log_test_0010
23  * @tc.desc      : test ld_log_reset normal condition.
24  * @tc.level     : Level 0
25  */
ld_log_test_0010(void)26 static void ld_log_test_0010(void)
27 {
28     ld_log_reset();
29     EXPECT_TRUE(__FUNCTION__, true);
30 }
31 
32 TEST_FUN G_Fun_Array[] = {
33     ld_log_test_0010,
34 };
35 
main(void)36 int main(void)
37 {
38     int num = sizeof(G_Fun_Array) / sizeof(TEST_FUN);
39     for (int pos = 0; pos < num; ++pos) {
40         G_Fun_Array[pos]();
41     }
42 
43     return t_status;
44 }