summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-04-30 00:58:47 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-11-07 16:41:37 +0000
commit788f2790125af40e4ffab75cc3963f4442524e2e (patch)
tree86d93860dd04265b7e511a1da4ab1c9a55f6cc27 /test/fixtures
parentExtend factory map to include make_shared (diff)
downloadilt-788f2790125af40e4ffab75cc3963f4442524e2e.tar.bz2
ilt-788f2790125af40e4ffab75cc3963f4442524e2e.tar.xz
ilt-788f2790125af40e4ffab75cc3963f4442524e2e.zip
Implement shared_ptr support
Uses somewhat dirty global map for keeping shared_ptr objects by key, needs fix
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/json/shared_ptr1.json11
-rw-r--r--test/fixtures/json/shared_ptr2.json8
2 files changed, 19 insertions, 0 deletions
diff --git a/test/fixtures/json/shared_ptr1.json b/test/fixtures/json/shared_ptr1.json
new file mode 100644
index 0000000..bb18e33
--- /dev/null
+++ b/test/fixtures/json/shared_ptr1.json
@@ -0,0 +1,11 @@
+{
+ "@typeid": "SharedTestObject",
+ "sptr": {
+ "@typeid": "SubObject",
+ "@id": "someid"
+ },
+ "ssptr": {
+ "@typeid": "SubObject",
+ "@id": "some other id"
+ }
+}
diff --git a/test/fixtures/json/shared_ptr2.json b/test/fixtures/json/shared_ptr2.json
new file mode 100644
index 0000000..4115493
--- /dev/null
+++ b/test/fixtures/json/shared_ptr2.json
@@ -0,0 +1,8 @@
+{
+ "@typeid": "SharedTestObject",
+ "sptr": {
+ "@typeid": "SubObject",
+ "@id": "someid"
+ },
+ "ssptr": "someid"
+}