forked from EvergreenCrypto/docker-finance
container: c++: dfi namespace refactor
Align with project alias, save the eyes and hands.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -39,17 +39,17 @@
|
||||
|
||||
#include "../common/hash.hh"
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::tests
|
||||
//! \namespace dfi::tests
|
||||
//! \brief docker-finance common test framework
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace tests
|
||||
{
|
||||
//! \namespace docker_finance::tests::benchmarks
|
||||
//! \namespace dfi::tests::benchmarks
|
||||
//! \brief docker-finance benchmark cases
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
@@ -592,7 +592,7 @@ BENCHMARK_F(HashLibsodium, SHA2_512)(::benchmark::State& state) // NOLINT
|
||||
}
|
||||
} // namespace benchmarks
|
||||
} // namespace tests
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_TEST_BENCHMARK_HASH_HH_
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -27,17 +27,17 @@
|
||||
|
||||
#include "../common/random.hh"
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::tests
|
||||
//! \namespace dfi::tests
|
||||
//! \brief docker-finance common test framework
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace tests
|
||||
{
|
||||
//! \namespace docker_finance::tests::benchmarks
|
||||
//! \namespace dfi::tests::benchmarks
|
||||
//! \brief docker-finance benchmark cases
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
@@ -130,7 +130,7 @@ BENCHMARK_F(RandomLibsodium, generate)(::benchmark::State& state) // NOLINT
|
||||
}
|
||||
} // namespace benchmarks
|
||||
} // namespace tests
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_TEST_BENCHMARK_RANDOM_HH_
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -27,17 +27,17 @@
|
||||
|
||||
#include "../common/utility.hh"
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::tests
|
||||
//! \namespace dfi::tests
|
||||
//! \brief docker-finance common test framework
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace tests
|
||||
{
|
||||
//! \namespace docker_finance::tests::benchmarks
|
||||
//! \namespace dfi::tests::benchmarks
|
||||
//! \brief docker-finance benchmark cases
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
@@ -133,7 +133,7 @@ BENCHMARK_F(Tools, random_dist_TRandomRanluxpp)
|
||||
|
||||
} // namespace benchmarks
|
||||
} // namespace tests
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_TEST_BENCHMARK_UTILITY_HH_
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -34,13 +34,13 @@
|
||||
|
||||
#include "../../src/hash.hh"
|
||||
|
||||
namespace type = docker_finance::internal::type;
|
||||
namespace type = dfi::internal::type;
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::tests
|
||||
//! \namespace dfi::tests
|
||||
//! \brief docker-finance common test framework
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
@@ -128,7 +128,7 @@ struct HashInterface : protected HashData
|
||||
protected:
|
||||
//! \brief Hash mock implementation
|
||||
//! \since docker-finance 1.0.0
|
||||
struct HashImpl : public ::docker_finance::internal::Transform<HashImpl>,
|
||||
struct HashImpl : public ::dfi::internal::Transform<HashImpl>,
|
||||
public type::Hash
|
||||
{
|
||||
//! \brief Implements trivial type mock Hash encoder
|
||||
@@ -170,7 +170,7 @@ struct HashInterface : protected HashData
|
||||
}
|
||||
};
|
||||
|
||||
using Hash = ::docker_finance::crypto::common::Hash<HashImpl>;
|
||||
using Hash = ::dfi::crypto::common::Hash<HashImpl>;
|
||||
Hash hash;
|
||||
};
|
||||
|
||||
@@ -1996,7 +1996,7 @@ struct HashData_SHAKE256 : protected HashData
|
||||
struct HashBotan_Impl
|
||||
{
|
||||
protected:
|
||||
using Hash = ::docker_finance::crypto::botan::Hash;
|
||||
using Hash = ::dfi::crypto::botan::Hash;
|
||||
Hash hash;
|
||||
};
|
||||
|
||||
@@ -2009,7 +2009,7 @@ struct HashBotan_Impl
|
||||
struct HashCryptoPP_Impl
|
||||
{
|
||||
protected:
|
||||
using Hash = ::docker_finance::crypto::cryptopp::Hash;
|
||||
using Hash = ::dfi::crypto::cryptopp::Hash;
|
||||
Hash hash;
|
||||
};
|
||||
|
||||
@@ -2022,11 +2022,11 @@ struct HashCryptoPP_Impl
|
||||
struct HashLibsodium_Impl
|
||||
{
|
||||
protected:
|
||||
using Hash = ::docker_finance::crypto::libsodium::Hash;
|
||||
using Hash = ::dfi::crypto::libsodium::Hash;
|
||||
Hash hash;
|
||||
};
|
||||
} // namespace tests
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_TEST_COMMON_HASH_HH_
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -29,11 +29,11 @@
|
||||
|
||||
#include "../../src/random.hh"
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::tests
|
||||
//! \namespace dfi::tests
|
||||
//! \brief docker-finance common test framework
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
@@ -46,21 +46,21 @@ struct RandomInterface
|
||||
protected:
|
||||
//! \brief Random mock implementation
|
||||
//! \since docker-finance 1.0.0
|
||||
struct RandomImpl : public ::docker_finance::internal::Random<RandomImpl>
|
||||
struct RandomImpl : public ::dfi::internal::Random<RandomImpl>
|
||||
{
|
||||
//! \brief Implements mock Random generator
|
||||
template <typename t_random>
|
||||
t_random generate_impl()
|
||||
{
|
||||
static_assert(
|
||||
::docker_finance::internal::type::is_real_integral<t_random>::value,
|
||||
::dfi::internal::type::is_real_integral<t_random>::value,
|
||||
"Random interface has changed");
|
||||
|
||||
return t_random{std::numeric_limits<t_random>::max()};
|
||||
}
|
||||
};
|
||||
|
||||
using Random = ::docker_finance::crypto::common::Random<RandomImpl>;
|
||||
using Random = ::dfi::crypto::common::Random<RandomImpl>;
|
||||
Random random;
|
||||
};
|
||||
|
||||
@@ -69,7 +69,7 @@ struct RandomInterface
|
||||
struct RandomBotan_Impl
|
||||
{
|
||||
protected:
|
||||
using Random = ::docker_finance::crypto::botan::Random;
|
||||
using Random = ::dfi::crypto::botan::Random;
|
||||
Random random;
|
||||
};
|
||||
|
||||
@@ -78,7 +78,7 @@ struct RandomBotan_Impl
|
||||
struct RandomCryptoPP_Impl
|
||||
{
|
||||
protected:
|
||||
using Random = ::docker_finance::crypto::cryptopp::Random;
|
||||
using Random = ::dfi::crypto::cryptopp::Random;
|
||||
Random random;
|
||||
};
|
||||
|
||||
@@ -87,11 +87,11 @@ struct RandomCryptoPP_Impl
|
||||
struct RandomLibsodium_Impl
|
||||
{
|
||||
protected:
|
||||
using Random = ::docker_finance::crypto::libsodium::Random;
|
||||
using Random = ::dfi::crypto::libsodium::Random;
|
||||
Random random;
|
||||
};
|
||||
} // namespace tests
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_TEST_COMMON_RANDOM_HH_
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -29,17 +29,17 @@
|
||||
|
||||
#include "../../src/internal/type.hh"
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::tests
|
||||
//! \namespace dfi::tests
|
||||
//! \brief docker-finance common test framework
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace tests
|
||||
{
|
||||
//! \namespace docker_finance::tests::unit
|
||||
//! \namespace dfi::tests::unit
|
||||
//! \brief docker-finance unit test cases
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
@@ -55,7 +55,7 @@ struct Exception : public ::testing::Test
|
||||
};
|
||||
} // namespace unit
|
||||
} // namespace tests
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_TEST_COMMON_TYPE_HH_
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -30,11 +30,11 @@
|
||||
|
||||
#include "../../src/utility.hh"
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::tests
|
||||
//! \namespace dfi::tests
|
||||
//! \brief docker-finance common test framework
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
@@ -46,9 +46,9 @@ struct ToolsFixture
|
||||
{
|
||||
//! \brief Tools implementation wrapper
|
||||
//! \since docker-finance 1.0.0
|
||||
struct ToolsImpl : public ::docker_finance::utility::impl::Tools
|
||||
struct ToolsImpl : public ::dfi::utility::impl::Tools
|
||||
{
|
||||
using t_impl = ::docker_finance::utility::impl::Tools;
|
||||
using t_impl = ::dfi::utility::impl::Tools;
|
||||
|
||||
template <typename t_gen, typename t_num = double>
|
||||
std::vector<t_num>
|
||||
@@ -68,7 +68,7 @@ struct ToolsFixture
|
||||
struct ByteFixture
|
||||
{
|
||||
protected:
|
||||
using t_byte = ::docker_finance::utility::Byte<uint8_t, std::byte>;
|
||||
using t_byte = ::dfi::utility::Byte<uint8_t, std::byte>;
|
||||
|
||||
//! \since docker-finance 1.0.0
|
||||
template <typename t_type>
|
||||
@@ -94,7 +94,7 @@ struct ByteFixture
|
||||
t_byte byte;
|
||||
};
|
||||
} // namespace tests
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_TEST_COMMON_UTILITY_HH_
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -41,17 +41,17 @@
|
||||
|
||||
#include "../common/hash.hh"
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::tests
|
||||
//! \namespace dfi::tests
|
||||
//! \brief docker-finance common test framework
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace tests
|
||||
{
|
||||
//! \namespace docker_finance::tests::unit
|
||||
//! \namespace dfi::tests::unit
|
||||
//! \brief docker-finance unit test cases
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
@@ -715,7 +715,7 @@ TEST_F(HashLibsodium_SHA2_512, encode)
|
||||
}
|
||||
} // namespace unit
|
||||
} // namespace tests
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_TEST_UNIT_HASH_HH_
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -31,17 +31,17 @@
|
||||
|
||||
#include "../common/random.hh"
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::tests
|
||||
//! \namespace dfi::tests
|
||||
//! \brief docker-finance common test framework
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace tests
|
||||
{
|
||||
//! \namespace docker_finance::tests::unit
|
||||
//! \namespace dfi::tests::unit
|
||||
//! \brief docker-finance unit test cases
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
@@ -178,7 +178,7 @@ TEST_F(RandomLibsodium, generate_uint32_t)
|
||||
|
||||
} // namespace unit
|
||||
} // namespace tests
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_TEST_UNIT_RANDOM_HH_
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -29,17 +29,17 @@
|
||||
|
||||
#include "../common/type.hh"
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::tests
|
||||
//! \namespace dfi::tests
|
||||
//! \brief docker-finance common test framework
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace tests
|
||||
{
|
||||
//! \namespace docker_finance::tests::unit
|
||||
//! \namespace dfi::tests::unit
|
||||
//! \brief docker-finance unit test cases
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
@@ -236,7 +236,7 @@ TEST_F(InvalidArgument, move_ctor)
|
||||
|
||||
} // namespace unit
|
||||
} // namespace tests
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_TEST_UNIT_TYPE_HH_
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -41,17 +41,17 @@
|
||||
|
||||
#include "../common/utility.hh"
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::tests
|
||||
//! \namespace dfi::tests
|
||||
//! \brief docker-finance common test framework
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace tests
|
||||
{
|
||||
//! \namespace docker_finance::tests::unit
|
||||
//! \namespace dfi::tests::unit
|
||||
//! \brief docker-finance unit test cases
|
||||
//! \ingroup cpp_tests
|
||||
//! \since docker-finance 1.0.0
|
||||
@@ -277,7 +277,7 @@ TEST_F(ByteTransform, unordered_set)
|
||||
}
|
||||
} // namespace unit
|
||||
} // namespace tests
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_TEST_UNIT_UTILITY_HH_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user