Skip to content

Add more tests#1593

Merged
prymitive merged 2 commits intomainfrom
tests
Oct 27, 2025
Merged

Add more tests#1593
prymitive merged 2 commits intomainfrom
tests

Conversation

@prymitive
Copy link
Collaborator

No description provided.

Copy link

@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.76.1-6-g6d96da50
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

codecov-commenter commented Oct 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.04%. Comparing base (509c49a) to head (6d96da5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1593      +/-   ##
==========================================
+ Coverage   96.98%   97.04%   +0.06%     
==========================================
  Files         109      109              
  Lines       13050    13050              
==========================================
+ Hits        12657    12665       +8     
+ Misses        261      254       -7     
+ Partials      132      131       -1     

☔ 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

github-actions bot commented Oct 27, 2025

Benchmark diff:

goos: linux
goarch: amd64
pkg: github.com/cloudflare/pint/cmd/pint
cpu: AMD EPYC 7763 64-Core Processor                
                    │   old.txt    │              new.txt               │
                    │    sec/op    │    sec/op     vs base              │
GlobFinder-4          29.50m ± ∞ ¹   29.60m ± ∞ ¹       ~ (p=0.095 n=5)
GitFinder-4           381.3m ± ∞ ¹   380.7m ± ∞ ¹       ~ (p=0.841 n=5)
CheckRules-4           9.462 ± ∞ ¹    9.458 ± ∞ ¹       ~ (p=1.000 n=5)
RuleIsIdentical-4     5.915m ± ∞ ¹   6.003m ± ∞ ¹       ~ (p=0.310 n=5)
GetChecksForEntry-4   107.8m ± ∞ ¹   108.7m ± ∞ ¹       ~ (p=0.056 n=5)
geomean               146.7m         147.4m        +0.50%
¹ need >= 6 samples for confidence interval at level 0.95

                    │    old.txt    │                new.txt                │
                    │     B/op      │     B/op       vs base                │
GlobFinder-4          9.493Mi ± ∞ ¹   9.492Mi ± ∞ ¹       ~ (p=0.841 n=5)
GitFinder-4           19.23Mi ± ∞ ¹   19.24Mi ± ∞ ¹       ~ (p=1.000 n=5)
CheckRules-4          995.2Mi ± ∞ ¹   995.2Mi ± ∞ ¹       ~ (p=0.841 n=5)
RuleIsIdentical-4       0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
GetChecksForEntry-4   56.55Mi ± ∞ ¹   56.55Mi ± ∞ ¹       ~ (p=0.548 n=5)
geomean                           ³                  +0.01%               ³
¹ need >= 6 samples for confidence interval at level 0.95
² all samples are equal
³ summaries must be >0 to compute geomean

                    │   old.txt    │               new.txt                │
                    │  allocs/op   │  allocs/op    vs base                │
GlobFinder-4          145.8k ± ∞ ¹   145.8k ± ∞ ¹       ~ (p=1.000 n=5)
GitFinder-4           185.3k ± ∞ ¹   185.3k ± ∞ ¹       ~ (p=0.310 n=5)
CheckRules-4          14.76M ± ∞ ¹   14.76M ± ∞ ¹       ~ (p=1.000 n=5)
RuleIsIdentical-4      0.000 ± ∞ ¹    0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
GetChecksForEntry-4   915.8k ± ∞ ¹   915.8k ± ∞ ¹       ~ (p=0.540 n=5)
geomean                          ³                 -0.00%               ³
¹ need >= 6 samples for confidence interval at level 0.95
² 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   26.75m ± ∞ ¹   27.43m ± ∞ ¹  ~ (p=0.151 n=5)
¹ need >= 6 samples for confidence interval at level 0.95

        │    old.txt    │            new.txt             │
        │     B/op      │     B/op       vs base         │
Parse-4   8.547Mi ± ∞ ¹   8.548Mi ± ∞ ¹  ~ (p=0.690 n=5)
¹ need >= 6 samples for confidence interval at level 0.95

        │   old.txt    │            new.txt            │
        │  allocs/op   │  allocs/op    vs base         │
Parse-4   144.9k ± ∞ ¹   144.9k ± ∞ ¹  ~ (p=0.238 n=5)
¹ need >= 6 samples for confidence interval at level 0.95

pkg: github.com/cloudflare/pint/internal/parser/utils
               │   old.txt    │            new.txt            │
               │    sec/op    │    sec/op     vs base         │
LabelsSource-4   1.358m ± ∞ ¹   1.366m ± ∞ ¹  ~ (p=0.095 n=5)
¹ need >= 6 samples for confidence interval at level 0.95

               │    old.txt    │            new.txt             │
               │     B/op      │     B/op       vs base         │
LabelsSource-4   1.126Mi ± ∞ ¹   1.127Mi ± ∞ ¹  ~ (p=0.690 n=5)
¹ need >= 6 samples for confidence interval at level 0.95

               │   old.txt    │            new.txt            │
               │  allocs/op   │  allocs/op    vs base         │
LabelsSource-4   8.862k ± ∞ ¹   8.862k ± ∞ ¹  ~ (p=1.000 n=5)
¹ need >= 6 samples for confidence interval at level 0.95

pkg: github.com/cloudflare/pint/internal/promapi
                    │   old.txt    │              new.txt               │
                    │    sec/op    │    sec/op     vs base              │
QueryCacheOnlySet-4   101.8n ± ∞ ¹   101.7n ± ∞ ¹       ~ (p=0.857 n=5)
QueryCacheSetGrow-4   397.0n ± ∞ ¹   380.6n ± ∞ ¹       ~ (p=0.421 n=5)
QueryCacheGetMiss-4   16.28n ± ∞ ¹   16.30n ± ∞ ¹       ~ (p=0.119 n=5)
QueryCacheGC/0%-4     33.44µ ± ∞ ¹   33.58µ ± ∞ ¹       ~ (p=0.548 n=5)
QueryCacheGC/1%-4     34.47µ ± ∞ ¹   34.80µ ± ∞ ¹       ~ (p=0.841 n=5)
QueryCacheGC/10%-4    38.93µ ± ∞ ¹   38.55µ ± ∞ ¹       ~ (p=0.151 n=5)
QueryCacheGC/20%-4    67.37µ ± ∞ ¹   67.26µ ± ∞ ¹       ~ (p=0.310 n=5)
QueryCacheGC/25%-4    66.59µ ± ∞ ¹   67.27µ ± ∞ ¹       ~ (p=0.095 n=5)
QueryCacheGC/50%-4    64.96µ ± ∞ ¹   65.00µ ± ∞ ¹       ~ (p=0.841 n=5)
QueryCacheGC/75%-4    49.72µ ± ∞ ¹   50.09µ ± ∞ ¹       ~ (p=1.000 n=5)
QueryCacheGC/99%-4    49.89µ ± ∞ ¹   49.87µ ± ∞ ¹       ~ (p=0.690 n=5)
QueryCacheGC/100%-4   49.98µ ± ∞ ¹   49.41µ ± ∞ ¹       ~ (p=0.310 n=5)
geomean               10.05µ         10.03µ        -0.28%
¹ need >= 6 samples for confidence interval at level 0.95

                    │    old.txt    │                new.txt                │
                    │     B/op      │     B/op       vs base                │
QueryCacheOnlySet-4     64.00 ± ∞ ¹     64.00 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheSetGrow-4     136.0 ± ∞ ¹     135.0 ± ∞ ¹       ~ (p=0.595 n=5)
QueryCacheGetMiss-4     0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/0%-4       0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/1%-4       0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/10%-4      0.000 ± ∞ ¹     0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/20%-4    18.09Ki ± ∞ ¹   18.09Ki ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/25%-4    18.09Ki ± ∞ ¹   18.09Ki ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/50%-4    18.09Ki ± ∞ ¹   18.09Ki ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/75%-4      48.00 ± ∞ ¹     48.00 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/99%-4      48.00 ± ∞ ¹     48.00 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/100%-4     48.00 ± ∞ ¹     48.00 ± ∞ ¹       ~ (p=1.000 n=5) ²
geomean                           ³                  -0.06%               ³
¹ need >= 6 samples for confidence interval at level 0.95
² all samples are equal
³ summaries must be >0 to compute geomean

                    │   old.txt   │               new.txt               │
                    │  allocs/op  │  allocs/op   vs base                │
QueryCacheOnlySet-4   1.000 ± ∞ ¹   1.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheSetGrow-4   1.000 ± ∞ ¹   1.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGetMiss-4   0.000 ± ∞ ¹   0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/0%-4     0.000 ± ∞ ¹   0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/1%-4     0.000 ± ∞ ¹   0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/10%-4    0.000 ± ∞ ¹   0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/20%-4    4.000 ± ∞ ¹   4.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/25%-4    4.000 ± ∞ ¹   4.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/50%-4    4.000 ± ∞ ¹   4.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/75%-4    1.000 ± ∞ ¹   1.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/99%-4    1.000 ± ∞ ¹   1.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
QueryCacheGC/100%-4   1.000 ± ∞ ¹   1.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
geomean                         ³                +0.00%               ³
¹ need >= 6 samples for confidence interval at level 0.95
² all samples are equal
³ summaries must be >0 to compute geomean

@prymitive prymitive enabled auto-merge October 27, 2025 10:19
@prymitive prymitive merged commit f2540c0 into main Oct 27, 2025
21 checks passed
@prymitive prymitive deleted the tests branch October 27, 2025 10:25
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