(src: string)
| 142 | | {type: 'error'}; |
| 143 | |
| 144 | function createState(src: string): State { |
| 145 | return { |
| 146 | state: 'loading', |
| 147 | src, |
| 148 | startTime: Date.now(), |
| 149 | loadTime: 0 |
| 150 | }; |
| 151 | } |
| 152 | |
| 153 | function reducer(state: State, action: Action): State { |
| 154 | switch (action.type) { |
nothing calls this directly
no outgoing calls
no test coverage detected