MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / HasContainerLeaf

Method HasContainerLeaf

pkg/util/json/json.go:1808–1822  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1806}
1807
1808func (j jsonArray) HasContainerLeaf() (bool, error) {
1809 if j.Len() == 0 {
1810 return true, nil
1811 }
1812 for _, c := range j {
1813 child, err := c.HasContainerLeaf()
1814 if err != nil {
1815 return false, err
1816 }
1817 if child {
1818 return true, nil
1819 }
1820 }
1821 return false, nil
1822}
1823
1824func (j jsonNull) HasContainerLeaf() (bool, error) { return false, nil }
1825func (j jsonTrue) HasContainerLeaf() (bool, error) { return false, nil }

Callers

nothing calls this directly

Calls 2

LenMethod · 0.95
HasContainerLeafMethod · 0.65

Tested by

no test coverage detected