(ok bool)
| 82 | } |
| 83 | |
| 84 | func (e *encoder) must(ok bool) { |
| 85 | if !ok { |
| 86 | msg := e.emitter.problem |
| 87 | if msg == "" { |
| 88 | msg = "unknown problem generating YAML content" |
| 89 | } |
| 90 | failf("%s", msg) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | func (e *encoder) marshalDoc(tag string, in reflect.Value) { |
| 95 | e.init() |
no test coverage detected