Skip to content

Add more test coverage#1780

Merged
prymitive merged 1 commit intomainfrom
diff
May 1, 2026
Merged

Add more test coverage#1780
prymitive merged 1 commit intomainfrom
diff

Conversation

@prymitive
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request was validated by pint.

✔️ No problems found

Stats

Stat Value
Version v0.80.0-27-gfa07352c
Number of rules parsed 9
Number of rules checked 9
Number of problems found 0
Number of offline checks 0
Number of online checks 0
Checks duration 0

Problems

No problems reported

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.53%. Comparing base (28a8a44) to head (fa07352).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1780      +/-   ##
==========================================
+ Coverage   99.46%   99.53%   +0.07%     
==========================================
  Files         113      113              
  Lines       13739    13739              
==========================================
+ Hits        13665    13675      +10     
+ Misses         40       35       -5     
+ Partials       34       29       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Benchmark diff:

goos: linux
goarch: amd64
pkg: github.com/cloudflare/pint/cmd/pint
cpu: AMD EPYC 9V74 80-Core Processor                
                    │   old.txt   │              new.txt               │
                    │   sec/op    │   sec/op     vs base               │
GlobFinder-4          18.51m ± 7%   18.58m ± 7%       ~ (p=0.315 n=10)
GitFinder-4           388.2m ± 1%   388.9m ± 1%       ~ (p=0.436 n=10)
CheckRules-4           9.596 ± 1%    9.587 ± 1%       ~ (p=0.684 n=10)
RuleIsIdentical-4     5.758m ± 1%   5.756m ± 0%       ~ (p=0.579 n=10)
GetChecksForEntry-4   112.5m ± 0%   113.1m ± 1%  +0.60% (p=0.035 n=10)
geomean               134.9m        135.2m       +0.20%

                    │    old.txt     │                new.txt                │
                    │      B/op      │     B/op      vs base                 │
GlobFinder-4          7.342Mi ± 0%     7.342Mi ± 0%       ~ (p=0.912 n=10)
GitFinder-4           16.38Mi ± 1%     16.38Mi ± 1%       ~ (p=0.853 n=10)
CheckRules-4          902.8Mi ± 0%     903.1Mi ± 0%       ~ (p=0.579 n=10)
RuleIsIdentical-4       0.000 ± 0%       0.000 ± 0%       ~ (p=1.000 n=10) ¹
GetChecksForEntry-4   56.84Mi ± 0%     56.84Mi ± 0%       ~ (p=0.796 n=10)
geomean                            ²                 +0.01%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

                    │    old.txt    │               new.txt                │
                    │   allocs/op   │  allocs/op   vs base                 │
GlobFinder-4          111.2k ± 0%     111.2k ± 0%       ~ (p=1.000 n=10)
GitFinder-4           146.1k ± 0%     146.1k ± 0%       ~ (p=0.956 n=10)
CheckRules-4          9.785M ± 0%     9.790M ± 0%       ~ (p=0.105 n=10)
RuleIsIdentical-4      0.000 ± 0%      0.000 ± 0%       ~ (p=1.000 n=10) ¹
GetChecksForEntry-4   927.9k ± 0%     927.9k ± 0%       ~ (p=0.648 n=10)
geomean                           ²                +0.01%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

pkg: github.com/cloudflare/pint/internal/parser
        │   old.txt   │            new.txt            │
        │   sec/op    │   sec/op     vs base          │
Parse-4   15.64m ± 2%   15.62m ± 0%  ~ (p=0.631 n=10)

        │   old.txt    │            new.txt             │
        │     B/op     │     B/op      vs base          │
Parse-4   6.324Mi ± 0%   6.324Mi ± 0%  ~ (p=0.470 n=10)

        │   old.txt   │             new.txt             │
        │  allocs/op  │  allocs/op   vs base            │
Parse-4   102.8k ± 0%   102.8k ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

pkg: github.com/cloudflare/pint/internal/parser/source
               │   old.txt   │              new.txt               │
               │   sec/op    │   sec/op     vs base               │
LabelsSource-4   7.027m ± 1%   6.946m ± 2%  -1.15% (p=0.015 n=10)

               │   old.txt    │            new.txt             │
               │     B/op     │     B/op      vs base          │
LabelsSource-4   5.703Mi ± 0%   5.703Mi ± 0%  ~ (p=0.684 n=10)

               │   old.txt   │            new.txt            │
               │  allocs/op  │  allocs/op   vs base          │
LabelsSource-4   46.76k ± 0%   46.76k ± 0%  ~ (p=0.865 n=10)

pkg: github.com/cloudflare/pint/internal/promapi
                    │   old.txt   │              new.txt               │
                    │   sec/op    │   sec/op     vs base               │
QueryCacheOnlySet-4   108.9n ± 0%   109.3n ± 0%  +0.41% (p=0.005 n=10)

                    │  old.txt   │            new.txt             │
                    │    B/op    │    B/op     vs base            │
QueryCacheOnlySet-4   64.00 ± 0%   64.00 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

                    │  old.txt   │            new.txt             │
                    │ allocs/op  │ allocs/op   vs base            │
QueryCacheOnlySet-4   1.000 ± 0%   1.000 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

@prymitive prymitive merged commit e282978 into main May 1, 2026
20 checks passed
@prymitive prymitive deleted the diff branch May 1, 2026 17:04
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.

2 participants