| 78 | return false; |
| 79 | } |
| 80 | std::string operator*() const { |
| 81 | switch (counter % 3) { |
| 82 | case 0: |
| 83 | ADD_FAILURE() << "Optional dereferenced in null value"; |
| 84 | break; |
| 85 | case 1: |
| 86 | return "yes"; |
| 87 | case 2: |
| 88 | return "no"; |
| 89 | } |
| 90 | return "error"; |
| 91 | } |
| 92 | }; |
| 93 | |
| 94 | int CustomOptionalTypeMock::counter = -1; |
nothing calls this directly
no outgoing calls
no test coverage detected