Commit b412f16
committed
test(signals): cover the gittensor_root branch of metadataOnly (#8325)
buildLocalScoreInput's metadataOnly condition (scorer?.mode !== "gittensor_root"
&& scorer?.mode !== "external_command") had zero test coverage for the
"gittensor_root" comparison specifically, despite 2600+ lines of coverage for
every other localScorer.mode value. Adds two tests exercising both outcomes:
mode "gittensor_root" (metadataOnly false, no "metadata_only" blockedBy entry)
contrasted with mode "metadata_only" (metadataOnly true, has the entry). Pure
test-addition, no production logic changed.
Note for a maintainer: the issue's description frames this as "gittensor_root
combined with the other half... makes metadataOnly true", but the actual
condition is a double !== (not ===), so mode "gittensor_root" always makes
metadataOnly false, never true -- the tests here reflect the real, current
behavior rather than the issue text's framing.1 parent 39ee47a commit b412f16
1 file changed
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
216 | 256 | | |
217 | 257 | | |
218 | 258 | | |
| |||
0 commit comments