LMMP 4.3.0
Lamina High-Precision Arithmetic Library
载入中...
搜索中...
未找到
test_version.c 文件参考
#include "lmmp/lmmpn.h"
#include "lmmp/mprand.h"
#include "lmmp/secret.h"
#include "lmmp/version.h"
#include "cases.h"
#include "support/lmmp_test_utils.h"
#include <string.h>
test_version.c 的引用(Include)关系图:

浏览该文件的源代码.

函数

static void test_fn_version_strings (void)
 Copyright (C) 2026 HJimmyK (Jericho Knox)
void test_version (void)

函数说明

◆ test_fn_version_strings()

void test_fn_version_strings ( void )
static

Copyright (C) 2026 HJimmyK (Jericho Knox)

This file is part of LMMP.

LMMP is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library. If not, see https://www.gnu.org/licenses/.

SPDX-License-Identifier: LGPL-3.0-or-later

在文件 test_version.c 第 32 行定义.

32 {
33 const char* v = lmmp_get_version();
34 const char* b = lmmp_get_build_type();
35 TEST_CHECK_MSG(v != NULL && strlen(v) > 0, "version string nonempty");
36 TEST_CHECK_MSG(b != NULL && strlen(b) > 0, "build type string nonempty");
37}
#define TEST_CHECK_MSG(cond, msg)
定义 test.h:38
const char * lmmp_get_build_type(void)
获取 LMMP 的构建类型字符串.
const char * lmmp_get_version(void)
Copyright (C) 2026 HJimmyK (Jericho Knox)

引用了 lmmp_get_build_type(), lmmp_get_version(), TEST_CASE , 以及 TEST_CHECK_MSG.

函数调用图:

◆ test_version()

void test_version ( void )

在文件 test_version.c 第 39 行定义.

39 {
40 TEST_RUN("misc/version", version_strings);
41}
#define TEST_RUN(category, name)
定义 test.h:36

引用了 TEST_RUN , 以及 test_version().

被这些函数引用 main() , 以及 test_version().

函数调用图:
这是这个函数的调用关系图: