()
| 182 | } |
| 183 | |
| 184 | func (pe *prepEncoder) pop() error { |
| 185 | in := pe.stack[len(pe.stack)-1] |
| 186 | pe.stack = pe.stack[:len(pe.stack)-1] |
| 187 | if dpe, ok := in.(dynamicPushEncoder); ok { |
| 188 | pe.length += dpe.adjustLength(pe.length) |
| 189 | } |
| 190 | |
| 191 | return nil |
| 192 | } |
| 193 | |
| 194 | // we do not record metrics during the prep encoder pass |
| 195 | func (pe *prepEncoder) metricRegistry() metrics.Registry { |
nothing calls this directly
no test coverage detected