Motr  M0
stats_ut.c
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2013-2020 Seagate Technology LLC and/or its Affiliates
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  * For any questions about this software or licensing,
18  * please email opensource@seagate.com or cortx-questions@seagate.com.
19  *
20  */
21 
22 #include "lib/finject.h"
23 #include "ut/ut.h"
24 
25 #include "stats/ut/stats_ut_svc.c"
26 
27 static int stats_ut_init(void)
28 {
29  return 0;
30 }
31 
32 static int stats_ut_fini(void)
33 {
34  return 0;
35 }
36 
38  .ts_name = "stats-ut",
39  .ts_init = stats_ut_init,
40  .ts_fini = stats_ut_fini,
41  .ts_tests = {
42  { "stats-svc-start-stop", stats_ut_svc_start_stop },
43  { "stats-svc-update-fom", stats_ut_svc_update_fom },
44  { "stats-svc-query-fom", stats_ut_svc_query_fom },
45  { "stats-svc-query-api", stats_svc_query_api },
46  { NULL, NULL}
47  }
48 };
49 M0_EXPORTED(stats_ut);
50 
51 /*
52  * Local variables:
53  * c-indentation-style: "K&R"
54  * c-basic-offset: 8
55  * tab-width: 8
56  * fill-column: 80
57  * scroll-step: 1
58  * End:
59  */
struct m0_ut_suite stats_ut
Definition: stats_ut.c:37
#define NULL
Definition: misc.h:38
static void stats_ut_svc_query_fom()
Definition: stats_ut_svc.c:391
Definition: ut.h:77
static void stats_svc_query_api()
Definition: stats_ut_svc.c:469
static int stats_ut_fini(void)
Definition: stats_ut.c:32
static void stats_ut_svc_start_stop()
Definition: stats_ut_svc.c:112
const char * ts_name
Definition: ut.h:99
static int stats_ut_init(void)
Definition: stats_ut.c:27
static void stats_ut_svc_update_fom()
Definition: stats_ut_svc.c:250