Move clang-format check to include tests (#1438)

* Move clang-format check to include tests
This commit is contained in:
Victor Vazquez 2021-01-22 13:35:59 -08:00 committed by GitHub
parent 5af134b103
commit 4455ac577c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,7 @@ jobs:
echo "Check clang-formatting"
brew install clang-format
clang-format --version
find sdk/ -regex '.*\.\(cpp\|hpp\)' -exec clang-format -style=file -i {} \;
find ./sdk \( -iname '*.hpp' -o -iname '*.cpp' \) ! -iname 'json.hpp' -exec clang-format -i {} \;
if [[ `git status | grep modified | awk '{print $2}'` ]]; then
echo Some files were not formatted correctly according to the .clang-format file.

View File

@ -282,7 +282,7 @@ namespace Azure { namespace Storage { namespace Test {
EXPECT_NO_THROW(pathClient.SetPermissions(pathPermissions, options1));
}
}
#if 0
#if 0
TEST_F(DataLakePathClientTest, LeaseRelated)
{
std::string leaseId1 = CreateUniqueLeaseId();
@ -343,7 +343,7 @@ namespace Azure { namespace Storage { namespace Test {
options.BreakPeriod = 0;
m_pathClient->BreakLease(options);
}
#endif
#endif
TEST_F(DataLakePathClientTest, ConstructorsWorks)
{
{