()
| 2901 | } |
| 2902 | |
| 2903 | func (j jsonArray) HasContainerLeaf() (bool, error) { |
| 2904 | if j.Len() == 0 { |
| 2905 | return true, nil |
| 2906 | } |
| 2907 | for _, c := range j { |
| 2908 | child, err := c.HasContainerLeaf() |
| 2909 | if err != nil { |
| 2910 | return false, err |
| 2911 | } |
| 2912 | if child { |
| 2913 | return true, nil |
| 2914 | } |
| 2915 | } |
| 2916 | return false, nil |
| 2917 | } |
| 2918 | |
| 2919 | func (j jsonNull) HasContainerLeaf() (bool, error) { return false, nil } |
| 2920 | func (j jsonTrue) HasContainerLeaf() (bool, error) { return false, nil } |
nothing calls this directly
no test coverage detected