| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/ftw/qqmlnullablevalue_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | template<typename T> | - |
| 4 | struct QQmlNullableValue | - |
| 5 | { | - |
| 6 | QQmlNullableValue() | - |
| 7 | : value(T()) {} executed 4870104 times by 147 tests: end of blockExecuted by:
| 4870104 |
| 8 | QQmlNullableValue(const QQmlNullableValue<T> &o) | - |
| 9 | : isNull(o.isNull), value(o.value) {} executed 12147 times by 4 tests: end of blockExecuted by:
| 12147 |
| 10 | QQmlNullableValue(const T &t) | - |
| 11 | : isNull(false), value(t) {} executed 14770 times by 8 tests: end of blockExecuted by:
| 14770 |
| 12 | QQmlNullableValue<T> &operator=(const T &t) | - |
| 13 | { isNull = false; value = t; return executed 40995 times by 123 tests: *this;return *this;Executed by:
executed 40995 times by 123 tests: }return *this;Executed by:
| 40995 |
| 14 | QQmlNullableValue<T> &operator=(const QQmlNullableValue<T> &o) | - |
| 15 | { isNull = o.isNull; value = o.value; return executed 7726 times by 5 tests: *this;return *this;Executed by:
executed 7726 times by 5 tests: }return *this;Executed by:
| 7726 |
| 16 | operator T() const { return executed 136094 times by 120 tests: value;return value;Executed by:
executed 136094 times by 120 tests: }return value;Executed by:
| 136094 |
| 17 | - | |
| 18 | void invalidate() { isNull = true; } never executed: end of block | 0 |
| 19 | bool isValid() const { return executed 73422 times by 17 tests: !isNull;return !isNull;Executed by:
executed 73422 times by 17 tests: }return !isNull;Executed by:
| 73422 |
| 20 | bool isNull = true; | - |
| 21 | T value; | - |
| 22 | }; | - |
| 23 | - | |
| 24 | - | |
| Switch to Source code | Preprocessed file |