Wenchao Xia | b86b05e | 2014-03-04 18:44:34 -0800 | [diff] [blame] | 1 | { 'enum': 'TestEnum', |
| 2 | 'data': [ 'value1', 'value2' ] } |
| 3 | |
Eric Blake | 895a2a8 | 2015-05-04 09:05:27 -0600 | [diff] [blame] | 4 | { 'struct': 'TestBase', |
Wenchao Xia | b86b05e | 2014-03-04 18:44:34 -0800 | [diff] [blame] | 5 | 'data': { 'enum1': 'TestEnum' } } |
| 6 | |
Eric Blake | 895a2a8 | 2015-05-04 09:05:27 -0600 | [diff] [blame] | 7 | { 'struct': 'TestTypeA', |
Wenchao Xia | b86b05e | 2014-03-04 18:44:34 -0800 | [diff] [blame] | 8 | 'data': { 'string': 'str' } } |
| 9 | |
Eric Blake | 895a2a8 | 2015-05-04 09:05:27 -0600 | [diff] [blame] | 10 | { 'struct': 'TestTypeB', |
Wenchao Xia | b86b05e | 2014-03-04 18:44:34 -0800 | [diff] [blame] | 11 | 'data': { 'integer': 'int' } } |
| 12 | |
Wenchao Xia | b86b05e | 2014-03-04 18:44:34 -0800 | [diff] [blame] | 13 | { 'union': 'TestUnion', |
| 14 | 'base': 'TestBase', |
| 15 | 'discriminator': 'enum_wrong', |
| 16 | 'data': { 'value1': 'TestTypeA', |
| 17 | 'value2': 'TestTypeB' } } |