* A TestBooter for testing purposes. Implements configure and load.
| 119 | * A TestBooter for testing purposes. Implements configure and load. |
| 120 | */ |
| 121 | class TestBooter implements Booter { |
| 122 | private configureCalled = false; |
| 123 | private loadCalled = false; |
| 124 | async configure() { |
| 125 | this.configureCalled = true; |
| 126 | } |
| 127 | |
| 128 | async load() { |
| 129 | this.loadCalled = true; |
| 130 | } |
| 131 | |
| 132 | get phasesCalled() { |
| 133 | const result = []; |
| 134 | if (this.configureCalled) result.push('TestBooter:configure'); |
| 135 | if (this.loadCalled) result.push('TestBooter:load'); |
| 136 | return result; |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * A TestBooter for testing purposes. Implements configure. |
nothing calls this directly
no outgoing calls
no test coverage detected