Commit c18ed25
committed
test(theme): cover registerFontLicenses to restore the patch gate
codecov/patch failed at 66.66% because registerFontLicenses() was never
executed by a test — the licence-loading stream was covered but the
one-line glue that hands it to the LicenseRegistry was not.
Drain the registry itself after resetting Flutter's own collectors, so
the wiring is verified end to end rather than the function merely being
called. The drain runs inside tester.runAsync: testWidgets' fake-async
zone never advances the real asset read the collector awaits, which is
why an earlier attempt hung to the 10-minute test timeout instead of
failing.1 parent 4874f9b commit c18ed25
1 file changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
195 | 217 | | |
196 | 218 | | |
197 | 219 | | |
198 | | - | |
199 | | - | |
| 220 | + | |
200 | 221 | | |
201 | 222 | | |
202 | 223 | | |
| |||
0 commit comments