Skip to content

Add more tests#1623

Merged
prymitive merged 1 commit intomainfrom
tests
Nov 20, 2025
Merged

Add more tests#1623
prymitive merged 1 commit 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.77.1-13-g05e66c7a
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

@github-actions
Copy link

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          31.27m ± ∞ ¹   30.93m ± ∞ ¹       ~ (p=0.548 n=5)
GitFinder-4           396.1m ± ∞ ¹   403.9m ± ∞ ¹  +1.96% (p=0.008 n=5)
CheckRules-4           9.512 ± ∞ ¹    9.473 ± ∞ ¹       ~ (p=0.421 n=5)
RuleIsIdentical-4     5.842m ± ∞ ¹   5.737m ± ∞ ¹       ~ (p=0.095 n=5)
GetChecksForEntry-4   116.3m ± ∞ ¹   113.8m ± ∞ ¹       ~ (p=0.421 n=5)
geomean               151.6m         150.5m        -0.70%
¹ need >= 6 samples for confidence interval at level 0.95

                    │    old.txt     │                new.txt                 │
                    │      B/op      │      B/op       vs base                │
GlobFinder-4           8.885Mi ± ∞ ¹    8.883Mi ± ∞ ¹       ~ (p=0.310 n=5)
GitFinder-4            17.70Mi ± ∞ ¹    17.71Mi ± ∞ ¹       ~ (p=0.841 n=5)
CheckRules-4          1014.2Mi ± ∞ ¹   1013.9Mi ± ∞ ¹       ~ (p=1.000 n=5)
RuleIsIdentical-4        0.000 ± ∞ ¹      0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
GetChecksForEntry-4    56.55Mi ± ∞ ¹    56.55Mi ± ∞ ¹       ~ (p=0.421 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          141.0k ± ∞ ¹   141.0k ± ∞ ¹       ~ (p=0.222 n=5)
GitFinder-4           180.5k ± ∞ ¹   180.5k ± ∞ ¹       ~ (p=0.571 n=5)
CheckRules-4          14.95M ± ∞ ¹   14.96M ± ∞ ¹       ~ (p=0.310 n=5)
RuleIsIdentical-4      0.000 ± ∞ ¹    0.000 ± ∞ ¹       ~ (p=1.000 n=5) ²
GetChecksForEntry-4   915.8k ± ∞ ¹   915.8k ± ∞ ¹       ~ (p=0.310 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

pkg: github.com/cloudflare/pint/internal/parser
        │   old.txt    │              new.txt               │
        │    sec/op    │    sec/op     vs base              │
Parse-4   28.95m ± ∞ ¹   28.17m ± ∞ ¹  -2.68% (p=0.008 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.380Mi ± ∞ ¹   8.379Mi ± ∞ ¹  -0.01% (p=0.016 n=5)
¹ need >= 6 samples for confidence interval at level 0.95

        │   old.txt    │            new.txt            │
        │  allocs/op   │  allocs/op    vs base         │
Parse-4   139.4k ± ∞ ¹   139.4k ± ∞ ¹  ~ (p=0.087 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   5.163m ± ∞ ¹   5.077m ± ∞ ¹  ~ (p=0.310 n=5)
¹ need >= 6 samples for confidence interval at level 0.95

               │    old.txt    │            new.txt             │
               │     B/op      │     B/op       vs base         │
LabelsSource-4   4.081Mi ± ∞ ¹   4.082Mi ± ∞ ¹  ~ (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   33.54k ± ∞ ¹   33.54k ± ∞ ¹  ~ (p=0.802 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   108.5n ± ∞ ¹   102.4n ± ∞ ¹  -5.62% (p=0.008 n=5)
QueryCacheSetGrow-4   367.8n ± ∞ ¹   389.4n ± ∞ ¹       ~ (p=0.151 n=5)
QueryCacheGetMiss-4   16.32n ± ∞ ¹   16.31n ± ∞ ¹       ~ (p=0.984 n=5)
QueryCacheGC/0%-4     36.35µ ± ∞ ¹   35.27µ ± ∞ ¹       ~ (p=0.056 n=5)
QueryCacheGC/1%-4     37.12µ ± ∞ ¹   35.55µ ± ∞ ¹       ~ (p=0.310 n=5)
QueryCacheGC/10%-4    39.78µ ± ∞ ¹   40.15µ ± ∞ ¹       ~ (p=0.421 n=5)
QueryCacheGC/20%-4    68.47µ ± ∞ ¹   69.78µ ± ∞ ¹       ~ (p=0.095 n=5)
QueryCacheGC/25%-4    68.91µ ± ∞ ¹   69.36µ ± ∞ ¹       ~ (p=0.222 n=5)
QueryCacheGC/50%-4    67.05µ ± ∞ ¹   66.12µ ± ∞ ¹       ~ (p=0.095 n=5)
QueryCacheGC/75%-4    51.09µ ± ∞ ¹   50.62µ ± ∞ ¹       ~ (p=0.056 n=5)
QueryCacheGC/99%-4    50.83µ ± ∞ ¹   49.36µ ± ∞ ¹  -2.90% (p=0.008 n=5)
QueryCacheGC/100%-4   51.17µ ± ∞ ¹   51.58µ ± ∞ ¹       ~ (p=0.548 n=5)
geomean               10.33µ         10.25µ        -0.70%
¹ 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     111.0 ± ∞ ¹     113.0 ± ∞ ¹       ~ (p=0.587 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.15%               ³
¹ 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

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.07%. Comparing base (b4b1bf5) to head (05e66c7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1623   +/-   ##
=======================================
  Coverage   97.07%   97.07%           
=======================================
  Files         109      109           
  Lines       13230    13230           
=======================================
  Hits        12843    12843           
  Misses        255      255           
  Partials      132      132           

☔ 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.

@prymitive prymitive merged commit 5f295ff into main Nov 20, 2025
23 checks passed
@prymitive prymitive deleted the tests branch November 20, 2025 17:14
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