Elffuss BraidHub

kikocis/kleidiai public

main · 864 BRawPermalink
1//
2// SPDX-FileCopyrightText: Copyright 2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
3//
4// SPDX-License-Identifier: Apache-2.0
5//
6
7#pragma once
8#include <cstddef>
9
10namespace kai::test {
11
12class TestConfig {
13public:
14 /// @brief Returns the single global instance of TestConfig.
15 /// @return Reference to the global TestConfig instance.
16 static TestConfig& Get();
17
18 /// @brief Sets how many shapes per operator will be generated.
19 /// @param n The number of shapes.
20 void set_num_shapes(size_t n);
21
22 /// @brief Returns the number of shapes to use in tests.
23 /// @return The current number of shapes.
24 size_t num_shapes() const;
25
26private:
27 /// @brief Private constructor to enforce singleton pattern.
28 TestConfig();
29
30 size_t m_num_shapes; ///< Number of shapes to use in tests.
31};
32
33} // namespace kai::test