| 43 | }); |
| 44 | |
| 45 | class TestController implements ReactiveController { |
| 46 | host: ReactiveControllerHost; |
| 47 | a: string; |
| 48 | |
| 49 | log: Array<string> = []; |
| 50 | |
| 51 | constructor(host: ReactiveControllerHost, a: string) { |
| 52 | this.host = host; |
| 53 | this.a = a; |
| 54 | host.addController(this); |
| 55 | ctorCallCount++; |
| 56 | } |
| 57 | |
| 58 | hostConnected() { |
| 59 | this.log.push('connected'); |
| 60 | } |
| 61 | |
| 62 | hostDisconnected() { |
| 63 | this.log.push('disconnected'); |
| 64 | } |
| 65 | |
| 66 | hostUpdate() { |
| 67 | this.log.push('update'); |
| 68 | } |
| 69 | |
| 70 | hostUpdated() { |
| 71 | this.log.push('updated'); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | const useTest = (a: string) => { |
| 76 | return useController( |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…