From 6832ded200f7a563b9e2cf81148fd26fdb064fdd Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 8 Oct 2024 09:16:13 +0200 Subject: Name classes, structs and enums using CamelCase. --- test/buildtool/file_system/git_repo.test.cpp | 4 ++-- test/buildtool/file_system/git_tree.test.cpp | 8 ++++---- test/utils/archive/archive_usage.test.cpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'test') 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({}), - {GitRepo::tree_entry_t{"foo", ObjectType::File}}}, + {GitRepo::TreeEntry{"foo", ObjectType::File}}}, {FromHexString(kBarId).value_or({}), - {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 const kTestScenarios = { +std::vector const kTestScenarios = { {.test_name = "tar", .type = ArchiveType::Tar, .test_dir = "test_tar", -- cgit v1.2.3