MCPcopy Index your code
hub / github.com/dunglas/httpsfv / valToDictionary

Function valToDictionary

httpwg_test.go:128–142  ·  view source on GitHub ↗
(e interface{})

Source from the content-addressed store, hash-verified

126}
127
128func 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
144func TestOfficialTestSuiteParsing(t *testing.T) {
145 const dir = "structured-field-tests/"

Calls 3

AddMethod · 0.95
NewDictionaryFunction · 0.85
valToMemberFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…