| 108 | } |
| 109 | |
| 110 | type unescapeTest struct { |
| 111 | in string // escaped string |
| 112 | out string // expected unescaped string |
| 113 | canAlloc bool // can unescape cause an allocation (depending on buffer size)? true iff 'in' contains escape sequence(s) |
| 114 | isErr bool // should this operation result in an error |
| 115 | } |
| 116 | |
| 117 | var unescapeTests = []unescapeTest{ |
| 118 | {in: ``, out: ``, canAlloc: false}, |
nothing calls this directly
no outgoing calls
no test coverage detected