iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
testing.hpp
Go to the documentation of this file.
1// Copyright (c) 2026 Contributors to the Eclipse Foundation
2//
3// See the NOTICE file(s) distributed with this work for additional
4// information regarding copyright ownership.
5//
6// This program and the accompanying materials are made available under the
7// terms of the Apache Software License 2.0 which is available at
8// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
9// which is available at https://opensource.org/licenses/MIT.
10//
11// SPDX-License-Identifier: Apache-2.0 OR MIT
12
13#ifndef IOX2_TESTING_HPP
14#define IOX2_TESTING_HPP
15
16#include "iox2/bb/file_name.hpp"
17#include "iox2/bb/file_path.hpp"
18#include "iox2/bb/path.hpp"
19#include "iox2/service_name.hpp"
20
21namespace iox2 {
22namespace testing {
25
28
31
34
37} // namespace testing
38} // namespace iox2
39
40#endif
The name of a [Service].
Represents a single file name. It is not allowed to contain any path elements like "....
Definition file_name.hpp:43
Represents a path to a file. It is not allowed to end with a path separator since this would then be ...
Definition file_path.hpp:44
Represents a path to a file or a directory.
Definition path.hpp:34
auto generate_file_path() -> bb::FilePath
Generates an all-time unique file name located inside the test directory.
void create_test_directory()
Creates the test directory to store test artifacts.
auto generate_file_name() -> bb::FileName
Generates an all-time unique file name.
auto test_directory_path() -> bb::Path
Returns the current test directory path.
auto generate_service_name() -> ServiceName
Generates a random all-time unique service name.