summaryrefslogtreecommitdiff
path: root/lib/memfs/internal/testdata/get_refresh_test.data
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memfs/internal/testdata/get_refresh_test.data')
-rw-r--r--lib/memfs/internal/testdata/get_refresh_test.data90
1 files changed, 73 insertions, 17 deletions
diff --git a/lib/memfs/internal/testdata/get_refresh_test.data b/lib/memfs/internal/testdata/get_refresh_test.data
index 1cf9b8cc..ce3e5d9e 100644
--- a/lib/memfs/internal/testdata/get_refresh_test.data
+++ b/lib/memfs/internal/testdata/get_refresh_test.data
@@ -2,10 +2,46 @@ Test Get that trigger refresh.
The MemFS Options TryDirect must be set to true.
If the input content is not set then the file will not be written.
->>> /dir-a/dir-b/file
-Content of file.
+<<< /
+{
+ "path": "/",
+ "name": "/",
+ "content_type": "",
+ "mode_string": "drwxr-xr-x",
+ "size": 0,
+ "is_dir": true,
+ "childs": []
+}
+
+>>> /file1
+Content of file1.
+
+<<< /file1
+{
+ "path": "/",
+ "name": "/",
+ "content_type": "",
+ "mode_string": "drwxr-xr-x",
+ "size": 0,
+ "is_dir": true,
+ "childs": [
+ {
+ "path": "/file1",
+ "name": "file1",
+ "content_type": "text/plain; charset=utf-8",
+ "mode_string": "-rw-------",
+ "size": 17,
+ "is_dir": false,
+ "content": "Q29udGVudCBvZiBmaWxlMS4=",
+ "childs": []
+ }
+ ]
+}
+
+>>> /dir-a/dir-b/file2
+Content of file2.
-<<< /dir-a/dir-b/file
+<<< /dir-a/dir-b/file2
{
"path": "/",
"name": "/",
@@ -15,6 +51,16 @@ Content of file.
"is_dir": true,
"childs": [
{
+ "path": "/file1",
+ "name": "file1",
+ "content_type": "text/plain; charset=utf-8",
+ "mode_string": "-rw-------",
+ "size": 17,
+ "is_dir": false,
+ "content": "Q29udGVudCBvZiBmaWxlMS4=",
+ "childs": []
+ },
+ {
"path": "/dir-a",
"name": "dir-a",
"content_type": "",
@@ -31,13 +77,13 @@ Content of file.
"is_dir": true,
"childs": [
{
- "path": "/dir-a/dir-b/file",
- "name": "file",
+ "path": "/dir-a/dir-b/file2",
+ "name": "file2",
"content_type": "text/plain; charset=utf-8",
"mode_string": "-rw-------",
- "size": 16,
+ "size": 17,
"is_dir": false,
- "content": "Q29udGVudCBvZiBmaWxlLg==",
+ "content": "Q29udGVudCBvZiBmaWxlMi4=",
"childs": []
}
]
@@ -47,10 +93,10 @@ Content of file.
]
}
->>> /dir-a/dir-b/file2
-Content of file2.
+>>> /dir-a/dir-b/file3
+Content of file3.
-<<< /dir-a/dir-b/file2
+<<< /dir-a/dir-b/file3
{
"path": "/",
"name": "/",
@@ -60,6 +106,16 @@ Content of file2.
"is_dir": true,
"childs": [
{
+ "path": "/file1",
+ "name": "file1",
+ "content_type": "text/plain; charset=utf-8",
+ "mode_string": "-rw-------",
+ "size": 17,
+ "is_dir": false,
+ "content": "Q29udGVudCBvZiBmaWxlMS4=",
+ "childs": []
+ },
+ {
"path": "/dir-a",
"name": "dir-a",
"content_type": "",
@@ -76,23 +132,23 @@ Content of file2.
"is_dir": true,
"childs": [
{
- "path": "/dir-a/dir-b/file",
- "name": "file",
+ "path": "/dir-a/dir-b/file2",
+ "name": "file2",
"content_type": "text/plain; charset=utf-8",
"mode_string": "-rw-------",
- "size": 16,
+ "size": 17,
"is_dir": false,
- "content": "Q29udGVudCBvZiBmaWxlLg==",
+ "content": "Q29udGVudCBvZiBmaWxlMi4=",
"childs": []
},
{
- "path": "/dir-a/dir-b/file2",
- "name": "file2",
+ "path": "/dir-a/dir-b/file3",
+ "name": "file3",
"content_type": "text/plain; charset=utf-8",
"mode_string": "-rw-------",
"size": 17,
"is_dir": false,
- "content": "Q29udGVudCBvZiBmaWxlMi4=",
+ "content": "Q29udGVudCBvZiBmaWxlMy4=",
"childs": []
}
]