Enabled code style check for tests (#6724)
This commit is contained in:
1 parent
1a446b49a2
commit
b62d93efff
6 files changed
+6
-7
No files matched your search
@@ -25,7 +25,7 @@ jobs:
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DENABLE_PYTHON=ON -DENABLE_PROFILING_ITT=ON -DSELECTIVE_BUILD=COLLECT ..
|
||||
cmake -DENABLE_PYTHON=ON -DENABLE_TESTS=ON -DENABLE_PROFILING_ITT=ON -DSELECTIVE_BUILD=COLLECT ..
|
||||
|
||||
- name: Check code style
|
||||
run: cmake --build build --target clang_format_check_all
|
||||
|
||||
-1
@@ -309,7 +309,6 @@ class MOCK_API FrontEndMockPy : public FrontEnd
|
||||
public:
|
||||
FrontEndMockPy() {}
|
||||
|
||||
|
||||
std::shared_ptr<ngraph::Function> convert(InputModel::Ptr model) const override
|
||||
{
|
||||
m_stat.m_convert_model++;
|
||||
|
||||
@@ -504,7 +504,8 @@ public:
|
||||
InputModel::Ptr load_impl(const std::vector<std::shared_ptr<Variant>>& params) const override
|
||||
{
|
||||
if (params.size() > 0 && is_type<VariantWrapper<std::string>>(params[0]))
|
||||
m_stat.m_load_paths.push_back(as_type_ptr<VariantWrapper<std::string>>(params[0])->get());
|
||||
m_stat.m_load_paths.push_back(
|
||||
as_type_ptr<VariantWrapper<std::string>>(params[0])->get());
|
||||
return std::make_shared<InputModelMockPy>();
|
||||
}
|
||||
|
||||
|
||||
@@ -34,8 +34,7 @@ static int set_test_env(const char* name, const char* value)
|
||||
TEST(FrontEndManagerTest, testAvailableFrontEnds)
|
||||
{
|
||||
FrontEndManager fem;
|
||||
ASSERT_NO_THROW(fem.register_front_end(
|
||||
"mock", []() { return std::make_shared<FrontEnd>(); }));
|
||||
ASSERT_NO_THROW(fem.register_front_end("mock", []() { return std::make_shared<FrontEnd>(); }));
|
||||
auto frontends = fem.get_available_front_ends();
|
||||
ASSERT_NE(std::find(frontends.begin(), frontends.end(), "mock"), frontends.end());
|
||||
FrontEnd::Ptr fe;
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
//
|
||||
|
||||
#include "cut_specific_model.hpp"
|
||||
#include "utils.hpp"
|
||||
#include "ngraph/opsets/opset7.hpp"
|
||||
#include "utils.hpp"
|
||||
|
||||
using namespace ngraph;
|
||||
using namespace ngraph::frontend;
|
||||
|
||||
@@ -63,7 +63,7 @@ TEST_P(FrontEndLoadFromTest, testLoadFromTwoFiles)
|
||||
TEST_P(FrontEndLoadFromTest, testLoadFromStream)
|
||||
{
|
||||
auto ifs = std::make_shared<std::ifstream>(m_param.m_modelsPath + m_param.m_stream,
|
||||
std::ios::in | std::ifstream::binary);
|
||||
std::ios::in | std::ifstream::binary);
|
||||
auto is = std::dynamic_pointer_cast<std::istream>(ifs);
|
||||
std::vector<std::string> frontends;
|
||||
FrontEnd::Ptr fe;
|
||||
|
||||
Reference in new issue
Block a user