Skip to content

Commit db78d02

Browse files
committed
fix fmt.
1 parent 1af22de commit db78d02

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

cpp/src/cwrapper/tsfile_cwrapper.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,6 @@ ERRNO tsfile_reader_close(TsFileReader reader);
291291
Tablet tablet_new(char** column_name_list, TSDataType* data_types,
292292
uint32_t column_num, uint32_t max_rows);
293293

294-
295-
296294
/**
297295
* @brief Gets current row count in the Tablet.
298296
*
@@ -578,7 +576,7 @@ TableSchema* tsfile_reader_get_all_table_schemas(TsFileReader reader,
578576

579577
// Close and free resource.
580578
void free_tablet(Tablet* tablet);
581-
void _free_tsfile_ts_record(TsRecord *record);
579+
void _free_tsfile_ts_record(TsRecord* record);
582580
void free_tsfile_result_set(ResultSet* result_set);
583581
void free_result_set_meta_data(ResultSetMetaData result_set_meta_data);
584582
void free_device_schema(DeviceSchema schema);

cpp/test/cwrapper/cwrapper_test.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,17 @@ TEST_F(CWrapperTest, TestForPythonInterfaceInsert) {
151151
const char* ret_char =
152152
tsfile_result_set_get_value_by_index_string(result, 2);
153153
EXPECT_EQ(strcmp(test_str, ret_char), 0);
154-
free((void*)ret_char); // Free the string returned by get_value_by_index_string
154+
free((void*)ret_char); // Free the string returned by
155+
// get_value_by_index_string
155156

156157
// Verify text data
157158
const common::String* text = result->get_value<common::String*>(3);
158159
EXPECT_EQ(strlen(test_text), text->len_);
159160
const char* ret_text =
160161
tsfile_result_set_get_value_by_index_string(result, 3);
161162
EXPECT_EQ(strcmp(test_text, ret_text), 0);
162-
free((void*)ret_text); // Free the string returned by get_value_by_index_string
163+
free((void*)ret_text); // Free the string returned by
164+
// get_value_by_index_string
163165

164166
// Verify date data
165167
int32_t ret_date =
@@ -168,14 +170,13 @@ TEST_F(CWrapperTest, TestForPythonInterfaceInsert) {
168170

169171
row_count++;
170172
}
171-
void * res = result;
173+
void* res = result;
172174

173175
// Free the result set
174176
free_tsfile_result_set(&res);
175177

176178
// Close and free the reader
177179
ASSERT_OK(tsfile_reader_close(reader), "close reader failed");
178-
179180
}
180181

181182
TEST_F(CWrapperTest, WriterFlushTabletAndReadData) {

0 commit comments

Comments
 (0)