Commit 4c98db8
committed
Fix architecture test: add continue after forbidden import match and zero-packages guard
- Add isForbidden flag and continue in forbidden suffix loop to prevent
falling through to the allowed-prefix check, which produced a misleading
'add it to allowedPrefixes' error for explicitly forbidden imports.
- Add len(agentPkgs)==0 guard to TestAgentPackages_SelfRegister to prevent
vacuously passing when no agent packages are discovered.1 parent 34a1f96 commit 4c98db8
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| |||
186 | 191 | | |
187 | 192 | | |
188 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
189 | 198 | | |
190 | 199 | | |
191 | 200 | | |
| |||
0 commit comments