CsvImp - minor cleanups in test code

This commit is contained in:
Geert Janssens
2024-07-26 15:51:55 +02:00
parent 75b7c7bfd3
commit 64f2d90ad7
2 changed files with 7 additions and 7 deletions

View File

@@ -36,20 +36,20 @@
#include <stdlib.h> /* getenv */
typedef struct
struct tokenize_csv_test_data
{
const char *csv_line;
uint num_fields;
const char *fields [8];
} tokenize_csv_test_data;
};
typedef struct
struct tokenize_fw_test_data
{
const char *fw_line;
uint num_fields;
uint field_widths[8];
const char *fields [8];
} tokenize_fw_test_data;
};
class GncTokenizerTest : public ::testing::Test
{
@@ -68,7 +68,7 @@ protected:
void set_utf8_contents(std::unique_ptr<GncTokenizer> &tokenizer, const std::string& newcontents)
{ tokenizer->m_utf8_contents = newcontents; }
void test_gnc_tokenize_helper (const std::string& separators, tokenize_csv_test_data* test_data); // for csv tokenizer
void test_gnc_tokenize_helper (tokenize_fw_test_data* test_data); // for csv tokenizer
void test_gnc_tokenize_helper (tokenize_fw_test_data* test_data); // for fw tokenizer
std::unique_ptr<GncTokenizer> fw_tok;
std::unique_ptr<GncTokenizer> csv_tok;

View File

@@ -41,14 +41,14 @@
// GncTxImport* parse_data;
//} Fixture;
typedef struct
struct parse_date_data
{
int date_fmt;
const gchar *date_str;
int exp_year;
int exp_month;
int exp_day;
} parse_date_data;
};
class GncTxImportTest : public ::testing::Test
{