summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-10-08 09:16:13 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-10-08 15:41:50 +0200
commit6832ded200f7a563b9e2cf81148fd26fdb064fdd (patch)
tree0f7aff13b0ac63dd16b15ff9329dbc2529355aa6 /test
parentdb5519c663ad119a47cb7747f80109267c301156 (diff)
downloadjustbuild-6832ded200f7a563b9e2cf81148fd26fdb064fdd.tar.gz
Name classes, structs and enums using CamelCase.
Diffstat (limited to 'test')
-rw-r--r--test/buildtool/file_system/git_repo.test.cpp4
-rw-r--r--test/buildtool/file_system/git_tree.test.cpp8
-rw-r--r--test/utils/archive/archive_usage.test.cpp4
3 files changed, 8 insertions, 8 deletions
diff --git a/test/buildtool/file_system/git_repo.test.cpp b/test/buildtool/file_system/git_repo.test.cpp
index 66293fba..fbe92a85 100644
--- a/test/buildtool/file_system/git_repo.test.cpp
+++ b/test/buildtool/file_system/git_repo.test.cpp
@@ -263,9 +263,9 @@ TEST_CASE("Single-threaded real repository local operations", "[git_repo]") {
// tag uncommitted tree
auto foo_bar = GitRepo::tree_entries_t{
{FromHexString(kFooId).value_or<std::string>({}),
- {GitRepo::tree_entry_t{"foo", ObjectType::File}}},
+ {GitRepo::TreeEntry{"foo", ObjectType::File}}},
{FromHexString(kBarId).value_or<std::string>({}),
- {GitRepo::tree_entry_t{"bar", ObjectType::Executable}}}};
+ {GitRepo::TreeEntry{"bar", ObjectType::Executable}}}};
auto foo_bar_id = repo_tag->CreateTree(foo_bar);
REQUIRE(foo_bar_id);
auto tree_id = ToHexString(*foo_bar_id);
diff --git a/test/buildtool/file_system/git_tree.test.cpp b/test/buildtool/file_system/git_tree.test.cpp
index c8a0b14d..aeaa1a80 100644
--- a/test/buildtool/file_system/git_tree.test.cpp
+++ b/test/buildtool/file_system/git_tree.test.cpp
@@ -421,15 +421,15 @@ TEST_CASE("Create Git Trees", "[git_cas]") {
SECTION("entry order") {
auto foo_bar = GitRepo::tree_entries_t{
{HexToRaw(kFooId),
- {GitRepo::tree_entry_t{"foo", ObjectType::File},
- GitRepo::tree_entry_t{"bar", ObjectType::Executable}}}};
+ {GitRepo::TreeEntry{"foo", ObjectType::File},
+ GitRepo::TreeEntry{"bar", ObjectType::Executable}}}};
auto foo_bar_id = repo->CreateTree(foo_bar);
REQUIRE(foo_bar_id);
auto bar_foo = GitRepo::tree_entries_t{
{HexToRaw(kFooId),
- {GitRepo::tree_entry_t{"bar", ObjectType::Executable},
- GitRepo::tree_entry_t{"foo", ObjectType::File}}}};
+ {GitRepo::TreeEntry{"bar", ObjectType::Executable},
+ GitRepo::TreeEntry{"foo", ObjectType::File}}}};
auto bar_foo_id = repo->CreateTree(bar_foo);
REQUIRE(bar_foo_id);
diff --git a/test/utils/archive/archive_usage.test.cpp b/test/utils/archive/archive_usage.test.cpp
index fd33f7e0..23313620 100644
--- a/test/utils/archive/archive_usage.test.cpp
+++ b/test/utils/archive/archive_usage.test.cpp
@@ -50,7 +50,7 @@ auto const kExpected = filetree_t{{"foo", {"foo", AE_IFREG}},
{"bar/", {"", AE_IFDIR}},
{"bar/baz", {"baz", AE_IFREG}}};
-struct archive_test_info_t {
+struct ArchiveTestInfo {
std::string test_name;
ArchiveType type;
std::string test_dir;
@@ -59,7 +59,7 @@ struct archive_test_info_t {
std::string cmd;
};
-std::vector<archive_test_info_t> const kTestScenarios = {
+std::vector<ArchiveTestInfo> const kTestScenarios = {
{.test_name = "tar",
.type = ArchiveType::Tar,
.test_dir = "test_tar",