Annotation of parser3/tests/results/341.processed, revision 1.6
1.1 moko 1: Content-Type: text/html
1.6 ! moko 2: Content-Length: 3358
1.1 moko 3:
1.5 moko 4: I. named
1.1 moko 5: Code coverage tests:
1.6 ! moko 6: Exception type: parser.runtime,
1.1 moko 7: Source: wrong,
8: Comment: must be 'hash', 'table' or 'string'
1.6 ! moko 9: Exception type: parser.runtime,
1.1 moko 10: Source: hash,
11: Comment: 'type' must be string
1.6 ! moko 12: Exception type: parser.runtime,
1.1 moko 13: Source: hash,
14: Comment: called with invalid option
1.6 ! moko 15: Exception type: parser.runtime,
1.1 moko 16: Source: hash,
17: Comment: options must be hash
1.6 ! moko 18: Exception type: parser.runtime,
1.1 moko 19: Source: hash,
20: Comment: value field(s) must be string or table or code
1.6 ! moko 21: Exception type: parser.runtime,
1.1 moko 22: Source: hash,
1.4 moko 23: Comment: you can't specify more then one value field with option $.type[string]
1.6 ! moko 24: Exception type: parser.runtime,
1.1 moko 25: Source: hash,
26: Comment: you can't specify $.type[] if value is code
1.6 ! moko 27: Exception type: parser.runtime,
1.2 moko 28: Source: ups,
29: Comment: column not found
1.6 ! moko 30: Exception type: parser.runtime,
1.2 moko 31: Source: ups,
32: Comment: column not found
1.1 moko 33: Valid calls tests:
1.5 moko 34: 1. {
1.1 moko 35: "1":{
36: "id":"1",
37: "price":"6.50"
38: },
39: "2":{
40: "id":"2",
1.5 moko 41: "price":"70.00",
42: "2":"",
43: "3":"more data"
1.1 moko 44: },
45: "3":{
46: "id":"3",
47: "price":"60.85"
48: }
49: }
1.5 moko 50: 2. {
1.1 moko 51: "1":[
52: {"id":"1","price":"6.50"}
53: ],
54: "2":[
1.5 moko 55: {"id":"2","price":"70.00","2":"","3":"more data"}
1.1 moko 56: ],
57: "3":[
58: {"id":"3","price":"60.85"}
59: ]
60: }
1.5 moko 61: 3. {
1.1 moko 62: "1":{
63: "price":"6.50"
64: },
65: "2":{
66: "price":"70.00"
67: },
68: "3":{
69: "price":"60.85"
70: }
71: }
1.5 moko 72: 4. {
1.1 moko 73: "id":{
74: "price":"6.50"
75: }
76: }
1.5 moko 77: 5. {
1.1 moko 78: "1":{
79: "id":"1",
80: "price":"6.50"
81: },
82: "2":{
83: "id":"2",
84: "price":"70.00"
85: },
86: "3":{
87: "id":"3",
88: "price":"60.85"
89: }
90: }
1.5 moko 91: 6. {
1.1 moko 92: "id":{
93: "id":"1",
94: "price":"6.50"
95: }
96: }
97: New functionality tests:
1.5 moko 98: n1. {
1.1 moko 99: "=1=":"1 - 6.50",
100: "=2=":"2 - 70.00",
1.3 moko 101: "=3=":"3 - 60.85",
102: "=_default=":"_default - 0"
1.1 moko 103: }
1.5 moko 104: n2. {
1.1 moko 105: "1":"1 - 6.50",
106: "2":"2 - 70.00",
107: "3":"3 - 60.85"
108: }
1.5 moko 109: n3. {
1.1 moko 110: "id":"code"
111: }
1.5 moko 112: n4. {
113: "1":{
114: "key":"6.50"
115: },
116: "2":{
117: "key":"70.00"
118: },
119: "3":{
120: "key":"60.85"
121: }
122: }
123: n5. {
124: "1":{},
125: "2":{},
126: "3":{}
127: }
128: n6. {
129: "1":"",
130: "2":"",
131: "3":""
132: }
133: II. nameless
134: Code coverage tests:
1.6 ! moko 135: Exception type: parser.runtime,
1.5 moko 136: Source: wrong,
137: Comment: must be 'hash', 'table' or 'string'
1.6 ! moko 138: Exception type: parser.runtime,
1.5 moko 139: Source: hash,
140: Comment: 'type' must be string
1.6 ! moko 141: Exception type: parser.runtime,
1.5 moko 142: Source: hash,
143: Comment: called with invalid option
1.6 ! moko 144: Exception type: parser.runtime,
1.5 moko 145: Source: hash,
146: Comment: options must be hash
1.6 ! moko 147: Exception type: parser.runtime,
1.5 moko 148: Source: hash,
149: Comment: value field(s) must be string or table or code
1.6 ! moko 150: Exception type: parser.runtime,
1.5 moko 151: Source: hash,
152: Comment: you can't specify more then one value field with option $.type[string]
1.6 ! moko 153: Exception type: parser.runtime,
1.5 moko 154: Source: hash,
155: Comment: you can't specify $.type[] if value is code
1.6 ! moko 156: Exception type: number.format,
1.5 moko 157: Source: ups,
158: Comment: invalid number (int)
1.6 ! moko 159: Exception type: number.format,
1.5 moko 160: Source: ups,
161: Comment: invalid number (int)
162: Valid calls tests:
163: 1. {
164: "1":{
165: "0":"1",
166: "1":"6.50"
167: },
168: "2":{
169: "0":"2",
170: "1":"70.00",
171: "2":"",
172: "3":"more data"
173: },
174: "3":{
175: "0":"3",
176: "1":"60.85"
177: }
178: }
179: 2. {
180: "1":[
181: {"0":"1","1":"6.50"}
182: ],
183: "2":[
184: {"0":"2","1":"70.00","2":"","3":"more data"}
185: ],
186: "3":[
187: {"0":"3","1":"60.85"}
188: ]
189: }
190: 3. {
191: "1":{
192: "1":"6.50"
193: },
194: "2":{
195: "1":"70.00"
196: },
197: "3":{
198: "1":"60.85"
199: }
200: }
201: 4. {
202: "0":{
203: "1":"6.50"
204: }
205: }
206: 5. {
207: "1":{
208: "0":"1",
209: "1":"6.50"
210: },
211: "2":{
212: "0":"2",
213: "1":"70.00"
214: },
215: "3":{
216: "0":"3",
217: "1":"60.85"
218: }
219: }
220: 6. {
221: "0":{
222: "0":"1",
223: "1":"6.50"
224: }
225: }
226: New functionality tests:
227: n1. {
228: "=1=":"1 - 6.50",
229: "=2=":"2 - 70.00",
230: "=3=":"3 - 60.85",
231: "=_default=":"_default - 0"
232: }
233: n2. {
234: "1":"1 - 6.50",
235: "2":"2 - 70.00",
236: "3":"3 - 60.85"
237: }
238: n3. {
239: "0":"code"
240: }
241: n4. {
1.1 moko 242: "1":{
243: "key":"6.50"
244: },
245: "2":{
246: "key":"70.00"
247: },
248: "3":{
249: "key":"60.85"
250: }
1.2 moko 251: }
1.5 moko 252: n5. {
1.2 moko 253: "1":{},
254: "2":{},
255: "3":{}
1.4 moko 256: }
1.5 moko 257: n6. {
1.4 moko 258: "1":"",
259: "2":"",
260: "3":""
1.1 moko 261: }
E-mail: