| src/xs/KeyProxy.cc | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 24 | 58.3 |
| line | true | false | branch |
|---|---|---|---|
| 8 | 8 | 2 | if (SvROK(sv)) { |
| 9 | 8 | 0 | Array a(SvRV(sv)); |
| 10 | 8 | 0 | if (a) return a[key]; |
| 8 | 0 | if (a) return a[key]; | |
| 0 | 8 | if (a) return a[key]; | |
| 12 | 2 | 0 | throw std::invalid_argument("element is not an array reference"); |
| 16 | 8 | 2 | if (SvROK(sv)) { |
| 17 | 8 | 0 | Hash h(SvRV(sv)); |
| 18 | 8 | 0 | if (h) return h[key]; |
| 8 | 0 | if (h) return h[key]; | |
| 0 | 8 | if (h) return h[key]; | |
| 20 | 2 | 0 | throw std::invalid_argument("element is not a hash reference"); |