| 188 | } |
| 189 | |
| 190 | void LogFromLocation(int location, std::string message) |
| 191 | { |
| 192 | switch (location) { |
| 193 | case 0: |
| 194 | LogPrint(BCLog::UNCONDITIONAL_RATE_LIMITED, "%s\n", message); |
| 195 | break; |
| 196 | case 1: |
| 197 | LogPrint(BCLog::UNCONDITIONAL_RATE_LIMITED, "%s\n", message); |
| 198 | break; |
| 199 | case 2: |
| 200 | LogPrint(BCLog::UNCONDITIONAL_ALWAYS, "%s\n", message); |
| 201 | break; |
| 202 | case 3: |
| 203 | LogPrint(BCLog::ALL, "%s\n", message); |
| 204 | break; |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | void LogFromLocationAndExpect(int location, std::string message, std::string expect) |
| 209 | { |
no outgoing calls
no test coverage detected