()
| 1806 | } |
| 1807 | |
| 1808 | func (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 | |
| 1824 | func (j jsonNull) HasContainerLeaf() (bool, error) { return false, nil } |
| 1825 | func (j jsonTrue) HasContainerLeaf() (bool, error) { return false, nil } |
nothing calls this directly
no test coverage detected