()
| 73 | } |
| 74 | |
| 75 | func (d *MappingsDecoder) Values() iter.Seq[*Mapping] { |
| 76 | return func(yield func(*Mapping) bool) { |
| 77 | for value, done := d.Next(); !done; value, done = d.Next() { |
| 78 | if !yield(value) { |
| 79 | break |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | func (d *MappingsDecoder) Next() (value *Mapping, done bool) { |
| 86 | for !d.done && d.pos < len(d.mappings) { |
no test coverage detected