| 17 | // the number of logs and errors, which can be useful |
| 18 | // for unit tests. |
| 19 | export class NullConsole implements ConsoleInterface { |
| 20 | logCount = 0; |
| 21 | errorCount = 0; |
| 22 | |
| 23 | log(message: string) { |
| 24 | this.logCount++; |
| 25 | } |
| 26 | |
| 27 | error(message: string) { |
| 28 | this.errorCount++; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | export class StandardConsole implements ConsoleInterface { |
| 33 | log(message: string) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…