Debian Codegraph @

tests/test_deep_copy.expected

raw
1 PASSED - loaded input data
2 PASSED - all json_object_deep_copy() returned successful
3 PASSED - all json_object_deep_copy() returned EINVAL for non-null pointer
4 PASSED - all json_object_equal() tests returned successful
5 PASSED - comparison of string output
6 PASSED - trying to overrwrite an object that has refcount > 1
7 Printing JSON objects for visual inspection
8 ------------------------------------------------
9 JSON1
10 {
11 "glossary":{
12 "title":"example glossary",
13 "GlossDiv":{
14 "number":16446744073709551615,
15 "title":"S",
16 "null_obj":null,
17 "exist":false,
18 "quantity":20,
19 "univalent":19.8,
20 "GlossList":{
21 "GlossEntry":{
22 "ID":"SGML",
23 "SortAs":"SGML",
24 "GlossTerm":"Standard Generalized Markup Language",
25 "Acronym":"SGML",
26 "Abbrev":"ISO 8879:1986",
27 "GlossDef":{
28 "para":"A meta-markup language, used to create markup languages such as DocBook.",
29 "GlossSeeAlso":[
30 "GML",
31 "XML"
32 ]
33 },
34 "GlossSee":"markup"
35 }
36 }
37 }
38 }
39 }
40 ------------------------------------------------
41 ------------------------------------------------
42 JSON2
43 {
44 "menu":{
45 "header":"SVG Viewer",
46 "items":[
47 {
48 "id":"Open"
49 },
50 {
51 "id":"OpenNew",
52 "label":"Open New"
53 },
54 null,
55 {
56 "id":"ZoomIn",
57 "label":"Zoom In"
58 },
59 {
60 "id":"ZoomOut",
61 "label":"Zoom Out"
62 },
63 {
64 "id":"OriginalView",
65 "label":"Original View"
66 },
67 null,
68 {
69 "id":"Quality",
70 "another_null":null
71 },
72 {
73 "id":"Pause"
74 },
75 {
76 "id":"Mute"
77 },
78 null,
79 {
80 "id":"Find",
81 "label":"Find..."
82 },
83 {
84 "id":"FindAgain",
85 "label":"Find Again"
86 },
87 {
88 "id":"Copy"
89 },
90 {
91 "id":"CopyAgain",
92 "label":"Copy Again"
93 },
94 {
95 "id":"CopySVG",
96 "label":"Copy SVG"
97 },
98 {
99 "id":"ViewSVG",
100 "label":"View SVG"
101 },
102 {
103 "id":"ViewSource",
104 "label":"View Source"
105 },
106 {
107 "id":"SaveAs",
108 "label":"Save As"
109 },
110 null,
111 {
112 "id":"Help"
113 },
114 {
115 "id":"About",
116 "label":"About Adobe CVG Viewer..."
117 }
118 ]
119 }
120 }
121 ------------------------------------------------
122 ------------------------------------------------
123 JSON3
124 ------------------------------------------------
125 {
126 "menu":{
127 "id":"file",
128 "value":"File",
129 "popup":{
130 "menuitem":[
131 {
132 "value":"New",
133 "onclick":"CreateNewDoc()"
134 },
135 {
136 "value":"Open",
137 "onclick":"OpenDoc()"
138 },
139 {
140 "value":"Close",
141 "onclick":"CloseDoc()"
142 }
143 ]
144 }
145 }
146 }
147 ------------------------------------------------
148
149 Testing deep_copy with a custom serializer set
150 CALLED: my_shallow_copy on with_serializer object
151
152 deep_copy with custom serializer worked OK.