(e interface{})
| 126 | } |
| 127 | |
| 128 | func valToDictionary(e interface{}) *Dictionary { |
| 129 | if e == nil { |
| 130 | return nil |
| 131 | } |
| 132 | |
| 133 | ex := e.([]interface{}) |
| 134 | d := NewDictionary() |
| 135 | |
| 136 | for _, v := range ex { |
| 137 | m := v.([]interface{}) |
| 138 | d.Add(m[0].(string), valToMember(m[1])) |
| 139 | } |
| 140 | |
| 141 | return d |
| 142 | } |
| 143 | |
| 144 | func TestOfficialTestSuiteParsing(t *testing.T) { |
| 145 | const dir = "structured-field-tests/" |
no test coverage detected
searching dependent graphs…