Branch Coverage

/usr/local/lib/perl5/site_perl/5.26.1/x86_64-linux/XS/libpanda.x/i/panda/optional.h
Criterion Covered Total %
branch 11 20 55.0


line true false branch
10 4 0 optional(const T& val) : nullable_val(new (storage) T(val)) {}
4 0 optional(const T& val) : nullable_val(new (storage) T(val)) {}
7 0 optional(const T& val) : nullable_val(new (storage) T(val)) {}
12 2 0 optional(const optional& oth) : nullable_val(oth ? new (storage) T(*oth) : nullptr) {}
2 0 optional(const optional& oth) : nullable_val(oth ? new (storage) T(*oth) : nullptr) {}
2 0 optional(const optional& oth) : nullable_val(oth ? new (storage) T(*oth) : nullptr) {}
2 0 optional(const optional& oth) : nullable_val(oth ? new (storage) T(*oth) : nullptr) {}
2 0 optional(const optional& oth) : nullable_val(oth ? new (storage) T(*oth) : nullptr) {}
30 6 0 if (nullable_val)
9 5 if (nullable_val)