• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ingitdb / ingitdb-cli / 25883524573
96%

Build:
DEFAULT BRANCH: main
Ran 14 May 2026 08:22PM UTC
Jobs 1
Files 121
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 May 2026 08:21PM UTC coverage: 91.151% (+0.09%) from 91.061%
25883524573

push

github

inGitDB Dev
refactor(cli): polish describe helpers (advisory cleanup)

Addresses the four advisory items from the post-merge code-quality
review:

1. Extract loadLocalDef helper. The --path/--remote mutual-exclusion
   check, remote-not-yet-implemented error, resolveDBPath, and
   readDefinition were duplicated across bareNameDescribe,
   runDescribeCollection, and runDescribeView. Centralise in one
   function; each caller drops ~10 lines.

2. Split runDescribeCollection and runDescribeView into thin
   cobra-entry shims plus describeCollectionFromDef /
   describeViewFromMatches cores. bareNameDescribe now reuses the
   Definition and the view-match list it already resolved instead
   of re-walking the database — eliminates the double view-walk on
   bare-name invocations.

3. Make the second os.ReadDir in discoverCollectionChildren use the
   explicit error-check pattern, matching the sibling viewsDir block
   right above it.

4. Adopt strings.CutSuffix in discoverCollectionChildren and
   strings.Cut in the columnsSection test helper, per the gopls
   simplification suggestions.

Behavior is unchanged. All 23 packages still pass; 5/5 stress runs
of cmd/ingitdb/commands clean (no stdout-swap flake regression).
golangci-lint 0 issues.

specscore: feature/cli/describe

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

26 of 40 new or added lines in 1 file covered. (65.0%)

2 existing lines in 1 file now uncovered.

10672 of 11708 relevant lines covered (91.15%)

1.07 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
79.28
3.65% cmd/ingitdb/commands/describe.go

Coverage Regressions

Lines Coverage ∆ File
2
79.28
3.65% cmd/ingitdb/commands/describe.go
Jobs
ID Job ID Ran Files Coverage
1 25883524573.1 14 May 2026 08:22PM UTC 121
91.15
GitHub Action Run
Source Files on build 25883524573
  • Tree
  • List 121
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d89d39e2 on github
  • Prev Build on main (#25881409168)
  • Next Build on main (#25981667351)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc