Skip to content

Commit

Permalink
improve(test): add fixtures and dedicated test to qdt-files.json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed May 30, 2024
1 parent 51c041e commit 4a6a708
Show file tree
Hide file tree
Showing 6 changed files with 13,229 additions and 40 deletions.
237 changes: 197 additions & 40 deletions examples/qdt-files.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,199 @@
[
{"type":"directory","name":".","size":4096,"time":"2023-12-29T11:03:36CET","contents":[
{"type":"directory","name":"profiles","size":4096,"time":"2023-12-22T16:14:45CET","contents":[
{"type":"directory","name":"demo","size":4096,"time":"2023-12-22T16:14:45CET","contents":[
{"type":"file","name":"bookmarks.xml","size":1582,"time":"2023-11-14T17:43:43CET"},
{"type":"directory","name":"images","size":4096,"time":"2023-06-13T17:02:08CEST","contents":[
{"type":"file","name":"logo_qdt.ico","size":227102,"time":"2023-06-13T17:02:08CEST"},
{"type":"file","name":"splash.png","size":354451,"time":"2023-06-13T17:02:08CEST"}
]},
{"type":"file","name":"profile.json","size":594,"time":"2023-06-13T17:02:08CEST"},
{"type":"directory","name":"QGIS","size":4096,"time":"2023-11-15T11:05:26CET","contents":[
{"type":"file","name":"QGIS3.ini","size":10605,"time":"2023-11-15T11:05:26CET"},
{"type":"file","name":"QGISCUSTOMIZATION3.ini","size":144530,"time":"2023-11-14T08:47:47CET"}
]}
]},
{"type":"file","name":"profiles.ini","size":34,"time":"2023-12-22T16:14:45CET"},
{"type":"directory","name":"Viewer Mode","size":4096,"time":"2023-12-29T10:13:27CET","contents":[
{"type":"file","name":"bookmarks.xml","size":1582,"time":"2023-12-22T16:14:45CET"},
{"type":"directory","name":"images","size":4096,"time":"2023-12-22T16:14:45CET","contents":[
{"type":"file","name":"logo_qdt.ico","size":227102,"time":"2023-12-22T16:14:45CET"},
{"type":"file","name":"splash.png","size":211808,"time":"2023-12-22T16:14:45CET"}
]},
{"type":"file","name":"profile.json","size":1481,"time":"2023-12-22T16:14:45CET"},
{"type":"file","name":"project_default_attachments.zip","size":1125,"time":"2023-12-22T16:14:45CET"},
{"type":"file","name":"project_default.qgs","size":80961,"time":"2023-12-22T16:14:45CET"},
{"type":"directory","name":"QGIS","size":4096,"time":"2023-12-22T16:14:45CET","contents":[
{"type":"file","name":"QGIS3.ini","size":119124,"time":"2023-12-22T16:14:45CET"},
{"type":"file","name":"QGISCUSTOMIZATION3.ini","size":144627,"time":"2023-12-22T16:14:45CET"}
]},
{"type":"file","name":"startup_project.qgz","size":13321,"time":"2023-12-22T16:14:45CET"}
]}
]},
{"type":"file","name":"qdt-files.json","size":0,"time":"2023-12-29T11:05:41CET"},
{"type":"file","name":"README.md","size":1139,"time":"2023-12-22T16:14:45CET"},
{"type":"directory","name":"scenarios","size":4096,"time":"2023-12-29T10:09:25CET","contents":[
{"type":"file","name":"demo-scenario-http.qdt.yml","size":1441,"time":"2023-12-29T11:04:38CET"},
{"type":"file","name":"demo-scenario.qdt.yml","size":1540,"time":"2023-12-22T20:07:44CET"}
]}
]}
,
{"type":"report","directories":8,"files":20}
{
"type": "directory",
"name": ".",
"size": 4096,
"time": "2023-12-29T11:03:36CET",
"contents": [
{
"type": "directory",
"name": "profiles",
"size": 4096,
"time": "2023-12-22T16:14:45CET",
"contents": [
{
"type": "directory",
"name": "demo",
"size": 4096,
"time": "2023-12-22T16:14:45CET",
"contents": [
{
"type": "file",
"name": "bookmarks.xml",
"size": 1582,
"time": "2023-11-14T17:43:43CET"
},
{
"type": "directory",
"name": "images",
"size": 4096,
"time": "2023-06-13T17:02:08CEST",
"contents": [
{
"type": "file",
"name": "logo_qdt.ico",
"size": 227102,
"time": "2023-06-13T17:02:08CEST"
},
{
"type": "file",
"name": "splash.png",
"size": 354451,
"time": "2023-06-13T17:02:08CEST"
}
]
},
{
"type": "file",
"name": "profile.json",
"size": 594,
"time": "2023-06-13T17:02:08CEST"
},
{
"type": "directory",
"name": "QGIS",
"size": 4096,
"time": "2023-11-15T11:05:26CET",
"contents": [
{
"type": "file",
"name": "QGIS3.ini",
"size": 10605,
"time": "2023-11-15T11:05:26CET"
},
{
"type": "file",
"name": "QGISCUSTOMIZATION3.ini",
"size": 144530,
"time": "2023-11-14T08:47:47CET"
}
]
}
]
},
{
"type": "file",
"name": "profiles.ini",
"size": 34,
"time": "2023-12-22T16:14:45CET"
},
{
"type": "directory",
"name": "Viewer Mode",
"size": 4096,
"time": "2023-12-29T10:13:27CET",
"contents": [
{
"type": "file",
"name": "bookmarks.xml",
"size": 1582,
"time": "2023-12-22T16:14:45CET"
},
{
"type": "directory",
"name": "images",
"size": 4096,
"time": "2023-12-22T16:14:45CET",
"contents": [
{
"type": "file",
"name": "logo_qdt.ico",
"size": 227102,
"time": "2023-12-22T16:14:45CET"
},
{
"type": "file",
"name": "splash.png",
"size": 211808,
"time": "2023-12-22T16:14:45CET"
}
]
},
{
"type": "file",
"name": "profile.json",
"size": 1481,
"time": "2023-12-22T16:14:45CET"
},
{
"type": "file",
"name": "project_default_attachments.zip",
"size": 1125,
"time": "2023-12-22T16:14:45CET"
},
{
"type": "file",
"name": "project_default.qgs",
"size": 80961,
"time": "2023-12-22T16:14:45CET"
},
{
"type": "directory",
"name": "QGIS",
"size": 4096,
"time": "2023-12-22T16:14:45CET",
"contents": [
{
"type": "file",
"name": "QGIS3.ini",
"size": 119124,
"time": "2023-12-22T16:14:45CET"
},
{
"type": "file",
"name": "QGISCUSTOMIZATION3.ini",
"size": 144627,
"time": "2023-12-22T16:14:45CET"
}
]
},
{
"type": "file",
"name": "startup_project.qgz",
"size": 13321,
"time": "2023-12-22T16:14:45CET"
}
]
}
]
},
{
"type": "file",
"name": "qdt-files.json",
"size": 0,
"time": "2023-12-29T11:05:41CET"
},
{
"type": "file",
"name": "README.md",
"size": 1139,
"time": "2023-12-22T16:14:45CET"
},
{
"type": "directory",
"name": "scenarios",
"size": 4096,
"time": "2023-12-29T10:09:25CET",
"contents": [
{
"type": "file",
"name": "demo-scenario-http.qdt.yml",
"size": 1441,
"time": "2023-12-29T11:04:38CET"
},
{
"type": "file",
"name": "demo-scenario.qdt.yml",
"size": 1540,
"time": "2023-12-22T20:07:44CET"
}
]
}
]
},
{
"type": "report",
"directories": 8,
"files": 20
}
]
Loading

0 comments on commit 4a6a708

Please sign in to comment.