Commit 6cb1093
committed
test(coordinator): 修 lifecycle_mu_test 缺 punctConverter 导致的 CI panic
TestHandleIMEActivated_MuReleasedBeforePush / TestHandleFocusGained_MuReleasedBeforePush
两处 Coordinator 字面量未初始化 punctConverter。HandleIMEActivated 在
!RememberLastState 分支(默认配置 RememberLastState=false 时命中)调用
c.punctConverter.Reset() 即触发 nil 解引用。
panic 让 internal/coordinator 包测试整包退出码 1, 真正有用的测试结果
被淹没。补上 transform.NewPunctuationConverter() 初始化, 包测试恢复绿色。1 parent 06fae5b commit 6cb1093
1 file changed
Lines changed: 13 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| |||
0 commit comments