@@ -80,8 +80,8 @@ public function testValidateOneCsvNegative(): void
80
80
+------+------------------+--------------+----------------------------------------------------------------------------------------+
81
81
| Line | id:Column | Rule | Message |
82
82
+------+------------------+--------------+----------------------------------------------------------------------------------------+
83
- | 6 | 0:Name | length_max | The length of the value "Long-long-name" is 14, which is greater than the expected "7" |
84
- | 11 | 4:Favorite color | allow_values | Value "YELLOW" is not allowed. Allowed values: ["red", "green", "blue"] |
83
+ | 6 | 0:Name | length_max | The length of the value "Long-long-name" is 14, which is greater than the expected "7" |
84
+ | 11 | 4:Favorite color | allow_values | Value "YELLOW" is not allowed. Allowed values: ["red", "green", "blue"] |
85
85
+------+------------------+--------------+----------------------------------------------------------------------------------------+
86
86
87
87
Summary:
@@ -112,7 +112,7 @@ public function testValidateOneCsvWithInvalidSchemaNegative(): void
112
112
Check schema syntax: 1
113
113
2 issues in ./tests/schemas/demo_invalid.yml
114
114
+-------+------------------+--------------+----------------------------------------------------------------------+
115
- | Line | id:Column | Rule | Message |
115
+ | Line | id:Column | Rule | Message |
116
116
+-------+------------------+--------------+----------------------------------------------------------------------+
117
117
| undef | 2:Float | is_float | Value "Qwerty" is not a float number |
118
118
| undef | 4:Favorite color | allow_values | Value "123" is not allowed. Allowed values: ["red", "green", "Blue"] |
@@ -124,19 +124,19 @@ public function testValidateOneCsvWithInvalidSchemaNegative(): void
124
124
+------+------------------+---------------------+------------------------------------------------------------------------------------------------------+
125
125
| Line | id:Column | Rule | Message |
126
126
+------+------------------+---------------------+------------------------------------------------------------------------------------------------------+
127
- | 1 | | allow_extra_columns | Column(s) not found in CSV: "wrong_column_name" |
128
- | 6 | 0:Name | length_min | The length of the value "Carl" is 4, which is less than the expected "5" |
129
- | 11 | 0:Name | length_min | The length of the value "Lois" is 4, which is less than the expected "5" |
130
- | 1 | 1:City | ag:is_unique | Column has non-unique values. Unique: 9, total: 10 |
131
- | 2 | 2:Float | num_max | The value "4825.185" is greater than the expected "4825.184" |
132
- | 1 | 2:Float | ag:nth_num | The N-th value in the column is "74", which is not equal than the expected "0.001" |
133
- | 6 | 3:Birthday | date_min | The date of the value "1955-05-14" is parsed as "1955-05-14 00:00:00 +00:00", which is less than the |
127
+ | 1 | | allow_extra_columns | Column(s) not found in CSV: "wrong_column_name" |
128
+ | 6 | 0:Name | length_min | The length of the value "Carl" is 4, which is less than the expected "5" |
129
+ | 11 | 0:Name | length_min | The length of the value "Lois" is 4, which is less than the expected "5" |
130
+ | 1 | 1:City | ag:is_unique | Column has non-unique values. Unique: 9, total: 10 |
131
+ | 2 | 2:Float | num_max | The value "4825.185" is greater than the expected "4825.184" |
132
+ | 1 | 2:Float | ag:nth_num | The N-th value in the column is "74", which is not equal than the expected "0.001" |
133
+ | 6 | 3:Birthday | date_min | The date of the value "1955-05-14" is parsed as "1955-05-14 00:00:00 +00:00", which is less than the |
134
134
| | | | expected "1955-05-15 00:00:00 +00:00 (1955-05-15)" |
135
- | 8 | 3:Birthday | date_min | The date of the value "1955-05-14" is parsed as "1955-05-14 00:00:00 +00:00", which is less than the |
135
+ | 8 | 3:Birthday | date_min | The date of the value "1955-05-14" is parsed as "1955-05-14 00:00:00 +00:00", which is less than the |
136
136
| | | | expected "1955-05-15 00:00:00 +00:00 (1955-05-15)" |
137
- | 9 | 3:Birthday | date_max | The date of the value "2010-07-20" is parsed as "2010-07-20 00:00:00 +00:00", which is greater than |
137
+ | 9 | 3:Birthday | date_max | The date of the value "2010-07-20" is parsed as "2010-07-20 00:00:00 +00:00", which is greater than |
138
138
| | | | the expected "2009-01-01 00:00:00 +00:00 (2009-01-01)" |
139
- | 5 | 4:Favorite color | allow_values | Value "blue" is not allowed. Allowed values: ["red", "green", "Blue"] |
139
+ | 5 | 4:Favorite color | allow_values | Value "blue" is not allowed. Allowed values: ["red", "green", "Blue"] |
140
140
+------+------------------+---------------------+------------------------------------------------------------------------------------------------------+
141
141
142
142
Summary:
@@ -171,7 +171,7 @@ public function testInvalidSchemaNotMatched(): void
171
171
Check schema syntax: 1
172
172
8 issues in ./tests/schemas/invalid_schema.yml
173
173
+-------+------------+--------+-------------------------------------------------------------------------+
174
- | Line | id:Column | Rule | Message |
174
+ | Line | id:Column | Rule | Message |
175
175
+-------+------------+--------+-------------------------------------------------------------------------+
176
176
| undef | meta | schema | Unknown key: .unknow_root_option |
177
177
| undef | meta | schema | Unknown key: .csv.unknow_csv_param |
@@ -219,7 +219,7 @@ public function testInvalidSchemaAndNotFoundCSV(): void
219
219
Check schema syntax: 1
220
220
8 issues in ./tests/schemas/invalid_schema.yml
221
221
+-------+------------+--------+-------------------------------------------------------------------------+
222
- | Line | id:Column | Rule | Message |
222
+ | Line | id:Column | Rule | Message |
223
223
+-------+------------+--------+-------------------------------------------------------------------------+
224
224
| undef | meta | schema | Unknown key: .unknow_root_option |
225
225
| undef | meta | schema | Unknown key: .csv.unknow_csv_param |
@@ -269,8 +269,8 @@ public function testValidateOneCsvNoHeaderNegative(): void
269
269
+------+-----------+------------------+------------------------------+
270
270
| Line | id:Column | Rule | Message |
271
271
+------+-----------+------------------+------------------------------+
272
- | 2 | 0: | not_allow_values | Value "Clyde" is not allowed |
273
- | 5 | 2: | not_allow_values | Value "74" is not allowed |
272
+ | 2 | 0: | not_allow_values | Value "Clyde" is not allowed |
273
+ | 5 | 2: | not_allow_values | Value "74" is not allowed |
274
274
+------+-----------+------------------+------------------------------+
275
275
276
276
Summary:
0 commit comments