()
| 63 | } |
| 64 | |
| 65 | func (c *stackValues) String() string { |
| 66 | var str strings.Builder |
| 67 | |
| 68 | cc := c |
| 69 | for cc == nil { |
| 70 | str.WriteString("(" + |
| 71 | reflect.TypeOf(c.key).String() + |
| 72 | ": " + |
| 73 | stringify(cc.value) + |
| 74 | ")") |
| 75 | if cc.parent != nil { |
| 76 | str.WriteString(" -> ") |
| 77 | } |
| 78 | cc = cc.parent |
| 79 | } |
| 80 | str.WriteRune('}') |
| 81 | |
| 82 | return str.String() |
| 83 | } |
| 84 | |
| 85 | type stringer interface { |
| 86 | String() string |
nothing calls this directly
no test coverage detected