()
| 1879 | } |
| 1880 | |
| 1881 | func (j jsonArray) HasContainerLeaf() (bool, error) { |
| 1882 | if j.Len() == 0 { |
| 1883 | return true, nil |
| 1884 | } |
| 1885 | for _, c := range j { |
| 1886 | child, err := c.HasContainerLeaf() |
| 1887 | if err != nil { |
| 1888 | return false, err |
| 1889 | } |
| 1890 | if child { |
| 1891 | return true, nil |
| 1892 | } |
| 1893 | } |
| 1894 | return false, nil |
| 1895 | } |
| 1896 | |
| 1897 | func (j jsonNull) HasContainerLeaf() (bool, error) { return false, nil } |
| 1898 | func (j jsonTrue) HasContainerLeaf() (bool, error) { return false, nil } |
nothing calls this directly
no test coverage detected