MissingTable is called when a table is present in the document but has no corresponding field in the target.
(node *unstable.Node)
| 41 | // MissingTable is called when a table is present in the document but has no |
| 42 | // corresponding field in the target. |
| 43 | func (s *strict) MissingTable(node *unstable.Node) { |
| 44 | if !s.Enabled { |
| 45 | return |
| 46 | } |
| 47 | s.missing = append(s.missing, decodeError{ |
| 48 | highlight: keyLocation(node), |
| 49 | key: s.key.Key(), |
| 50 | message: "missing table", |
| 51 | }) |
| 52 | } |
| 53 | |
| 54 | // MissingField is called when a key-value is present in the document but has |
| 55 | // no corresponding field in the target. |
no test coverage detected