micro-test-plus
6.0.0
µTest++ Testing Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
deprecated.cpp
Go to the documentation of this file.
1
/*
2
* This file is part of the µOS++ project (https://micro-os-plus.github.io/).
3
* Copyright (c) 2021-2026 Liviu Ionescu. All rights reserved.
4
*
5
* Permission to use, copy, modify, and/or distribute this software for any
6
* purpose is hereby granted, under the terms of the MIT license.
7
*
8
* If a copy of the license was not distributed with this file, it can be
9
* obtained from https://opensource.org/licenses/mit.
10
*
11
* Major parts of the code are inspired from v1.1.8 of the Boost UT project,
12
* released under the terms of the Boost Version 1.0 Software License,
13
* which can be obtained from https://www.boost.org/LICENSE_1_0.txt.
14
*/
15
16
// ----------------------------------------------------------------------------
17
39
40
// ----------------------------------------------------------------------------
41
42
#include "
micro-os-plus/micro-test-plus/deprecated.h
"
43
#include "
micro-os-plus/micro-test-plus/stopwatch.h
"
44
#include "
micro-os-plus/micro-test-plus/utility.h
"
45
46
// ----------------------------------------------------------------------------
47
48
#if defined(__GNUC__)
49
#if defined(__clang__)
50
#pragma clang diagnostic ignored "-Wc++98-compat"
51
#endif
// defined(__clang__)
52
#endif
// defined(__GNUC__)
53
54
// ============================================================================
55
56
#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_ENABLED) \
57
&& defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED)
58
59
// ----------------------------------------------------------------------------
60
61
namespace
micro_os_plus::micro_test_plus
62
{
63
// --------------------------------------------------------------------------
64
65
namespace
reflection
66
{
67
// ------------------------------------------------------------------------
68
76
// Deprecated since 6.0.0; use utility::extract_file_name().
77
const
char
*
78
short_name
(
const
char
* name)
noexcept
79
{
80
return
utility::extract_file_name
(name);
81
}
82
83
// ------------------------------------------------------------------------
84
}
// namespace reflection
85
86
// --------------------------------------------------------------------------
87
88
namespace
detail
89
{
90
// ========================================================================
91
98
// Deprecated since 6.0.0, as the whole `timestamp` class; the timings are
99
// internal.
100
timestamp::timestamp
(
void
)
noexcept
101
{
102
read_clock
(
value_
);
103
}
104
105
// ------------------------------------------------------------------------
106
}
// namespace detail
107
108
// --------------------------------------------------------------------------
109
}
// namespace micro_os_plus::micro_test_plus
110
111
// ----------------------------------------------------------------------------
112
113
#endif
/* defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_ENABLED) \
114
&& defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED) */
115
116
// ----------------------------------------------------------------------------
micro_os_plus::micro_test_plus::detail::timestamp::timestamp
timestamp(void) noexcept
Constructs a timestamp with the current time.
Definition
deprecated.cpp:100
micro_os_plus::micro_test_plus::detail::timestamp::value_
timespec value_
The stored time.
Definition
deprecated.h:2448
deprecated.h
C++ header file with declarations for the deprecated µTest++ definitions.
micro_os_plus::micro_test_plus::reflection::short_name
const char * short_name(const char *name) noexcept
Deprecated extraction of the file name from a path.
Definition
deprecated.cpp:78
micro_os_plus::micro_test_plus::utility::extract_file_name
const char * extract_file_name(const char *path) noexcept
Extracts the file name component from a full path.
Definition
utility.cpp:95
micro_os_plus::micro_test_plus::detail::read_clock
void read_clock(timespec &ts) noexcept
Reads the system clock.
Definition
stopwatch.cpp:66
micro_os_plus::micro_test_plus::reflection
Reflection utilities for the µTest++ testing framework.
Definition
deprecated.h:2255
micro_os_plus::micro_test_plus
Primary namespace for the µTest++ testing framework.
Definition
check-result.h:76
stopwatch.h
C++ header file with declarations for the µTest++ stopwatch.
utility.h
C++ header file with declarations for the µTest++ utility helpers.
src
deprecated.cpp
Generated by
1.18.0