MCPcopy
hub / github.com/pelletier/go-toml / MissingTable

Method MissingTable

strict.go:43–52  ·  view source on GitHub ↗

MissingTable is called when a table is present in the document but has no corresponding field in the target.

(node *unstable.Node)

Source from the content-addressed store, hash-verified

41// MissingTable is called when a table is present in the document but has no
42// corresponding field in the target.
43func (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.

Callers 1

walkTableMethod · 0.80

Calls 2

keyLocationFunction · 0.85
KeyMethod · 0.45

Tested by

no test coverage detected