-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add testing infrastructure for the DynamicLibraryManager #155
Add testing infrastructure for the DynamicLibraryManager #155
Conversation
cc: @Smit1603 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
} else { | ||
LLVM_DEBUG(dbgs() << "Dyld::lookupLibrary: '" << libStem.str() << "'" | ||
<< "is not a shared library\n"); | ||
return std::string(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: do not use 'else' after 'return' [llvm-else-after-return]
} else { | |
LLVM_DEBUG(dbgs() << "Dyld::lookupLibrary: '" << libStem.str() << "'" | |
<< "is not a shared library\n"); | |
return std::string(); | |
} | |
} LLVM_DEBUG(dbgs() << "Dyld::lookupLibrary: '" << libStem.str() << "'" | |
<< "is not a shared library\n"); | |
return std::string(); | |
@@ -0,0 +1,8 @@ | |||
#include "gtest/gtest.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: 'gtest/gtest.h' file not found [clang-diagnostic-error]
#include "gtest/gtest.h"
^
@@ -0,0 +1,2 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: header is missing header guard [llvm-header-guard]
#ifndef GITHUB_WORKSPACE_UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H | |
#define GITHUB_WORKSPACE_UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H | |
unittests/CppInterOp/TestSharedLib/TestSharedLib.h:-1:
+
+ #endif
88f6bd4
to
10a0f5a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
} else { | ||
LLVM_DEBUG(dbgs() << "Dyld::lookupLibrary: '" << libStem.str() << "'" | ||
<< "is not a shared library\n"); | ||
return std::string(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: do not use 'else' after 'return' [llvm-else-after-return]
} else { | |
LLVM_DEBUG(dbgs() << "Dyld::lookupLibrary: '" << libStem.str() << "'" | |
<< "is not a shared library\n"); | |
return std::string(); | |
} | |
} LLVM_DEBUG(dbgs() << "Dyld::lookupLibrary: '" << libStem.str() << "'" | |
<< "is not a shared library\n"); | |
return std::string(); | |
fcc9794
to
3b50482
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
|
||
LLVM_DEBUG(dbgs() << "Dyld::lookupLibrary: '" << libStem.str() << "'" | ||
<< "is not a shared library\n"); | ||
return std::string(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: do not use 'else' after 'return' [llvm-else-after-return]
LLVM_DEBUG(dbgs() << "Dyld::lookupLibrary: '" << libStem.str() << "'" | |
<< "is not a shared library\n"); | |
return std::string(); | |
} | |
} LLVM_DEBUG(dbgs() << "Dyld::lookupLibrary: '" << libStem.str() << "'" | |
<< "is not a shared library\n"); | |
return std::string(); | |
@@ -0,0 +1,6 @@ | |||
#ifndef UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: header is missing header guard [llvm-header-guard]
#ifndef UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H | |
#ifndef GITHUB_WORKSPACE_UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H | |
#define GITHUB_WORKSPACE_UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H | |
unittests/CppInterOp/TestSharedLib/TestSharedLib.h:-1:
+
+ #endif
3b50482
to
72624fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
#ifndef UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H | ||
#define UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: header guard does not follow preferred style [llvm-header-guard]
#ifndef UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H | |
#define UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H | |
#ifndef GITHUB_WORKSPACE_UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H | |
#define GITHUB_WORKSPACE_UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H |
unittests/CppInterOp/TestSharedLib/TestSharedLib.h:5:
- #endif // UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H
+ #endif // GITHUB_WORKSPACE_UNITTESTS_CPPINTEROP_TESTSHAREDLIB_TESTSHAREDLIB_H
Codecov Report
@@ Coverage Diff @@
## main #155 +/- ##
==========================================
+ Coverage 65.85% 70.31% +4.45%
==========================================
Files 17 19 +2
Lines 4326 4332 +6
==========================================
+ Hits 2849 3046 +197
+ Misses 1477 1286 -191
... and 4 files with indirect coverage changes
|
The failures are preexisting. |
No description provided.