Skip to content

Add samples mode - #35

Merged
vearutop merged 2 commits into
masterfrom
samples
Aug 6, 2026
Merged

Add samples mode#35
vearutop merged 2 commits into
masterfrom
samples

Conversation

@vearutop

@vearutop vearutop commented Aug 6, 2026

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 9 (+1) 1939 (+277) 1462 (+188) 80 (+35) 397 (+54) 417 (+70) 44K (+8.2K)
Go (test) 3 458 (+384) 338 (+276) 24 (+24) 96 (+84) 114 (+104) 10.7K (+8.9K)

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

Go API Changes

# summary
Inferred base version: v0.3.24
Suggested version: v0.4.0

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

Unit Test Coverage

total: (statements) 42.4%
changed lines: (statements) 77.0%, coverage is less than 90.0%, consider testing the changes more thoroughly

Coverage of changed lines
File Function Coverage
Total 77.0%
cmd/catp/catp/app.go 100.0%
cmd/catp/catp/app.go:29 Main 100.0%
cmd/catp/catp/catp.go 97.5%
cmd/catp/catp/catp.go:272 scanFile 100.0%
cmd/catp/catp/catp.go:498 cat 96.6%
cmd/catp/catp/samples.go 64.1%
cmd/catp/catp/samples.go:22 trySampleSeekable 100.0%
cmd/catp/catp/samples.go:123 sampleNextMatch 81.9%
cmd/catp/catp/samples.go:188 writeMatch 78.6%
cmd/catp/catp/samples.go:202 sampleOutput 75.0%
cmd/catp/catp/samples.go:42 sampleSeekable 50.0%
Coverage diff with base branch
File Function Base Coverage Current Coverage
Total 34.6% 42.4% (+7.8%)
cmd/catp/catp/app.go Main 51.0% 56.3% (+5.3%)
cmd/catp/catp/catp.go cat 74.5% 77.9% (+3.4%)
cmd/catp/catp/catp.go openReader 30.0% 40.0% (+10.0%)
cmd/catp/catp/catp.go scanFile 49.2% 67.1% (+17.9%)
cmd/catp/catp/samples.go sampleNextMatch no function 72.7%
cmd/catp/catp/samples.go sampleOutput no function 75.0%
cmd/catp/catp/samples.go sampleSeekable no function 52.3%
cmd/catp/catp/samples.go trySampleSeekable no function 100.0%
cmd/catp/catp/samples.go writeMatch no function 66.7%

@vearutop
vearutop merged commit ffa04b7 into master Aug 6, 2026
5 checks passed
@vearutop
vearutop deleted the samples branch August 6, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant