Commit 4b36b65
test: expand coverage across api, blastradius, cache, mcp, render, and shards
- api: add GraphFromShardIR tests (Nodes, Rels, RepoID, NodeByID, NodesByLabel, empty)
- blastradius: new zip_test.go covering isGitRepo, isWorktreeClean, walkZip
(hidden files, skip dirs, createZip round-trip)
- cache: add PutJSON/GetJSON round-trip, miss, and overwrite tests
- mcp: add boolArg and intArg tests
- render/funcs: add 23 tests for totalTime, formatDuration, seq, dict,
reverseStrings, minInt/maxInt, length, entity accessors (fieldAccess,
sectionAccess, getStringSlice, hasField, getInt, getFloat),
jsonMarshal/toJSON, defaultVal/ternary/hasKey, parseQuantity, parseUnit,
parseIngredient*, fractionDisplay, scaleQty
- shards: new graph_test.go (25 tests for Cache.Build, SourceFiles, FuncName,
TransitiveDependents, computeStats, isShardPath, firstString, intProp)
- shards: extend render_test.go (CommentPrefix, ShardFilename, Header,
sortedUnique, sortedBoolKeys, formatLoc, renderDepsSection,
renderImpactSection, RenderGraph, WriteShard, updateGitignore)
Coverage deltas: render 11%→45%, blastradius 32%→60%, cache 61%→78%
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9cdfd11 commit 4b36b65
7 files changed
Lines changed: 1455 additions & 0 deletions
File tree
- internal
- api
- archdocs/pssg/render
- blastradius
- cache
- mcp
- shards
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
235 | 337 | | |
236 | 338 | | |
237 | 339 | | |
| |||
0 commit comments