Skip to content

Commit b995b68

Browse files
committed
lint
1 parent bdbc82f commit b995b68

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

runtime/executor/method_meta.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ struct ExecutionPlan;
2222
namespace executorch {
2323
namespace ET_RUNTIME_NAMESPACE {
2424
namespace testing {
25-
// Provides test access to private Program methods.
26-
class TensorInfoTestFriend;
27-
} // namespace testing
25+
// Provides test access to private Program methods.
26+
class TensorInfoTestFriend;
27+
} // namespace testing
2828

2929
/**
3030
* Metadata about a specific tensor of an ExecuTorch Program.

runtime/executor/test/method_meta_test.cpp

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ namespace runtime {
3232
namespace testing {
3333
// Provides access to private TensorInfo methods.
3434
class TensorInfoTestFriend final {
35-
public:
35+
public:
3636
ET_NODISCARD static TensorInfo get(
37-
Span<const int32_t> sizes,
38-
Span<const uint8_t> dim_order,
39-
executorch::aten::ScalarType scalar_type,
40-
const bool is_memory_planned,
41-
executorch::aten::string_view name) {
37+
Span<const int32_t> sizes,
38+
Span<const uint8_t> dim_order,
39+
executorch::aten::ScalarType scalar_type,
40+
const bool is_memory_planned,
41+
executorch::aten::string_view name) {
4242
return TensorInfo(
43-
Span<const int32_t>(sizes.data(), sizes.size()),
44-
Span<const uint8_t>(dim_order.data(), dim_order.size()),
45-
scalar_type,
46-
is_memory_planned,
47-
name);
43+
Span<const int32_t>(sizes.data(), sizes.size()),
44+
Span<const uint8_t>(dim_order.data(), dim_order.size()),
45+
scalar_type,
46+
is_memory_planned,
47+
name);
4848
}
4949
};
5050
} // namespace testing
@@ -219,12 +219,14 @@ TEST_F(MethodMetaTest, TensorInfoSizeOverflow) {
219219
std::vector<uint8_t> dim_order = {0, 1, 2, 3};
220220

221221
// Create a TensorInfo with the overflow sizes and expect it to fail.
222-
ET_EXPECT_DEATH(executorch::runtime::testing::TensorInfoTestFriend::get(
223-
Span<const int32_t>(overflow_sizes.data(), overflow_sizes.size()),
224-
Span<const uint8_t>(dim_order.data(), dim_order.size()),
225-
executorch::aten::ScalarType::Float,
226-
false, // is_memory_planned
227-
executorch::aten::string_view{nullptr, 0}),"");
222+
ET_EXPECT_DEATH(
223+
executorch::runtime::testing::TensorInfoTestFriend::get(
224+
Span<const int32_t>(overflow_sizes.data(), overflow_sizes.size()),
225+
Span<const uint8_t>(dim_order.data(), dim_order.size()),
226+
executorch::aten::ScalarType::Float,
227+
false, // is_memory_planned
228+
executorch::aten::string_view{nullptr, 0}),
229+
"");
228230

229231
>>>>>>> 274eb94ae5abda2434bb3d295a5798849f8844c4
230232
}

0 commit comments

Comments
 (0)