Coverage Report

Created: 2024-11-20 12:56

/root/doris/be/src/common/version_internal.cpp
Line
Count
Source (jump to first uncovered line)
1
// Licensed to the Apache Software Foundation (ASF) under one
2
// or more contributor license agreements.  See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership.  The ASF licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License.  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,
12
// software distributed under the License is distributed on an
13
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, either express or implied.  See the License for the
15
// specific language governing permissions and limitations
16
// under the License.
17
18
#include "common/version_internal.h"
19
20
#include <gen_cpp/version.h>
21
22
namespace doris {
23
namespace version {
24
25
0
const char* doris_build_version_prefix() {
26
0
    return DORIS_BUILD_VERSION_PREFIX;
27
0
}
28
0
int doris_build_version_major() {
29
0
    return DORIS_BUILD_VERSION_MAJOR;
30
0
}
31
0
int doris_build_version_minor() {
32
0
    return DORIS_BUILD_VERSION_MINOR;
33
0
}
34
0
int doris_build_version_patch() {
35
0
    return DORIS_BUILD_VERSION_PATCH;
36
0
}
37
0
const char* doris_build_version_rc_version() {
38
0
    return DORIS_BUILD_VERSION_RC_VERSION;
39
0
}
40
41
0
const char* doris_build_version() {
42
0
    return DORIS_BUILD_VERSION;
43
0
}
44
0
const char* doris_build_hash() {
45
0
    return DORIS_BUILD_HASH;
46
0
}
47
0
const char* doris_build_short_hash() {
48
0
    return DORIS_BUILD_SHORT_HASH;
49
0
}
50
0
const char* doris_build_time() {
51
0
    return DORIS_BUILD_TIME;
52
0
}
53
0
const char* doris_build_info() {
54
0
    return DORIS_BUILD_INFO;
55
0
}
56
57
} // namespace version
58
59
} // namespace doris