chore: update .gitignore to exclude some CSV files and add test sample CSV

This commit is contained in:
JayBridge 2025-06-07 23:20:45 +08:00
parent 3ad133d77c
commit 88d92fa033
2 changed files with 57 additions and 1 deletions

5
.gitignore vendored
View file

@ -24,10 +24,13 @@ csv_metadata
scripts
# test
*.csv
# *.csv
# Exclude macOS Finder (System Explorer) View States
.DS_Store
# Test coverage reports
coverage/
# currently local
test/complex-test.csv

53
test/test-sample.csv Normal file
View file

@ -0,0 +1,53 @@
name,age,email,description,notes
John Doe,25,john@example.com,Simple record,No special characters
"Jane Smith",30,"jane@test.com","Contains, comma","Normal quoted field"
Bob,,"bob@mail.com","Missing age field",
"Alice ""Wonder"" Land",28,alice@wonder.com,"Contains ""quotes"" inside","Escaped quotes test"
"Charlie
Multi-line",35,charlie@test.com,"This description
spans multiple lines","Multi-line content"
"Eve,Comma",22,"eve,comma@test.com","Name with, comma","Email with, comma"
,40,empty@name.com,Empty name field,Missing first field
"Frank O'Connor",45,frank@test.com,"Name with apostrophe","Single quote test"
" Leading Spaces",50," spaces@test.com "," Padded content ","Whitespace handling"
"Trailing comma test",60,trailing@test.com,"Description,","Field ends with comma"
"Unicode测试",25,unicode@测试.com,"包含中文字符","Unicode content test"
"Special chars !@#$%",30,special@test.com,"Contains !@#$%^&*()","Special characters"
"",0,"","","All empty quoted fields"
'Single quotes',35,'single@test.com','Single quoted fields','Non-standard quoting'
"Very long field with lots of text that goes on and on and on to test how the parser handles really long content without breaking or causing memory issues",99,long@test.com,"Another very long field that contains a lot of descriptive text to see how well the CSV parser can handle large amounts of data in a single field","Long content stress test"
"Test User 16",16,user16@test.com,"Standard test case","Normal data"
"Test User 17",17,user17@test.com,"Standard test case","Normal data"
"Test User 18",18,user18@test.com,"Standard test case","Normal data"
"Test User 19",19,user19@test.com,"Standard test case","Normal data"
"Test User 20",20,user20@test.com,"Standard test case","Normal data"
"Test User 21",21,user21@test.com,"Standard test case","Normal data"
"Test User 22",22,user22@test.com,"Standard test case","Normal data"
"Test User 23",23,user23@test.com,"Standard test case","Normal data"
"Test User 24",24,user24@test.com,"Standard test case","Normal data"
"Test User 25",25,user25@test.com,"Standard test case","Normal data"
"Test User 26",26,user26@test.com,"Standard test case","Normal data"
"Test User 27",27,user27@test.com,"Standard test case","Normal data"
"Test User 28",28,user28@test.com,"Standard test case","Normal data"
"Test User 29",29,user29@test.com,"Standard test case","Normal data"
"Test User 30",30,user30@test.com,"Standard test case","Normal data"
"Test User 31",31,user31@test.com,"Standard test case","Normal data"
"Test User 32",32,user32@test.com,"Standard test case","Normal data"
"Test User 33",33,user33@test.com,"Standard test case","Normal data"
"Test User 34",34,user34@test.com,"Standard test case","Normal data"
"Test User 35",35,user35@test.com,"Standard test case","Normal data"
"Test User 36",36,user36@test.com,"Standard test case","Normal data"
"Test User 37",37,user37@test.com,"Standard test case","Normal data"
"Test User 38",38,user38@test.com,"Standard test case","Normal data"
"Test User 39",39,user39@test.com,"Standard test case","Normal data"
"Test User 40",40,user40@test.com,"Standard test case","Normal data"
"Test User 41",41,user41@test.com,"Standard test case","Normal data"
"Test User 42",42,user42@test.com,"Standard test case","Normal data"
"Test User 43",43,user43@test.com,"Standard test case","Normal data"
"Test User 44",44,user44@test.com,"Standard test case","Normal data"
"Test User 45",45,user45@test.com,"Standard test case","Normal data"
"Test User 46",46,user46@test.com,"Standard test case","Normal data"
"Test User 47",47,user47@test.com,"Standard test case","Normal data"
"Test User 48",48,user48@test.com,"Standard test case","Normal data"
"Test User 49",49,user49@test.com,"Standard test case","Normal data"
"Test User 50",50,user50@test.com,"Standard test case","Normal data"
1 name age email description notes
2 John Doe 25 john@example.com Simple record No special characters
3 Jane Smith 30 jane@test.com Contains, comma Normal quoted field
4 Bob bob@mail.com Missing age field
5 Alice "Wonder" Land 28 alice@wonder.com Contains "quotes" inside Escaped quotes test
6 Charlie Multi-line 35 charlie@test.com This description spans multiple lines Multi-line content
7 Eve,Comma 22 eve,comma@test.com Name with, comma Email with, comma
8 40 empty@name.com Empty name field Missing first field
9 Frank O'Connor 45 frank@test.com Name with apostrophe Single quote test
10 Leading Spaces 50 spaces@test.com Padded content Whitespace handling
11 Trailing comma test 60 trailing@test.com Description, Field ends with comma
12 Unicode测试 25 unicode@测试.com 包含中文字符 Unicode content test
13 Special chars !@#$% 30 special@test.com Contains !@#$%^&*() Special characters
14 0 All empty quoted fields
15 'Single quotes' 35 'single@test.com' 'Single quoted fields' 'Non-standard quoting'
16 Very long field with lots of text that goes on and on and on to test how the parser handles really long content without breaking or causing memory issues 99 long@test.com Another very long field that contains a lot of descriptive text to see how well the CSV parser can handle large amounts of data in a single field Long content stress test
17 Test User 16 16 user16@test.com Standard test case Normal data
18 Test User 17 17 user17@test.com Standard test case Normal data
19 Test User 18 18 user18@test.com Standard test case Normal data
20 Test User 19 19 user19@test.com Standard test case Normal data
21 Test User 20 20 user20@test.com Standard test case Normal data
22 Test User 21 21 user21@test.com Standard test case Normal data
23 Test User 22 22 user22@test.com Standard test case Normal data
24 Test User 23 23 user23@test.com Standard test case Normal data
25 Test User 24 24 user24@test.com Standard test case Normal data
26 Test User 25 25 user25@test.com Standard test case Normal data
27 Test User 26 26 user26@test.com Standard test case Normal data
28 Test User 27 27 user27@test.com Standard test case Normal data
29 Test User 28 28 user28@test.com Standard test case Normal data
30 Test User 29 29 user29@test.com Standard test case Normal data
31 Test User 30 30 user30@test.com Standard test case Normal data
32 Test User 31 31 user31@test.com Standard test case Normal data
33 Test User 32 32 user32@test.com Standard test case Normal data
34 Test User 33 33 user33@test.com Standard test case Normal data
35 Test User 34 34 user34@test.com Standard test case Normal data
36 Test User 35 35 user35@test.com Standard test case Normal data
37 Test User 36 36 user36@test.com Standard test case Normal data
38 Test User 37 37 user37@test.com Standard test case Normal data
39 Test User 38 38 user38@test.com Standard test case Normal data
40 Test User 39 39 user39@test.com Standard test case Normal data
41 Test User 40 40 user40@test.com Standard test case Normal data
42 Test User 41 41 user41@test.com Standard test case Normal data
43 Test User 42 42 user42@test.com Standard test case Normal data
44 Test User 43 43 user43@test.com Standard test case Normal data
45 Test User 44 44 user44@test.com Standard test case Normal data
46 Test User 45 45 user45@test.com Standard test case Normal data
47 Test User 46 46 user46@test.com Standard test case Normal data
48 Test User 47 47 user47@test.com Standard test case Normal data
49 Test User 48 48 user48@test.com Standard test case Normal data
50 Test User 49 49 user49@test.com Standard test case Normal data
51 Test User 50 50 user50@test.com Standard test case Normal data