Skip to content

docs: upgrading to v2: Parse returns the errors of the drivers - #51

Merged
Insei merged 1 commit into
mainfrom
upgrading-errors
Oct 18, 2026
Merged

Insei merged 1 commit into
mainfrom
upgrading-errors

Conversation

@Insei

@Insei Insei commented Oct 18, 2026

Copy link
Copy Markdown
Owner

v1.3.2 only logged the errors of the drivers in Parse and returned nil, v2 returns them. The upgrading page describes it.

Signed-off-by: Dmitriy Aleksandrov <goodmobiledevices@gmail.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (3f682fe) to head (6d460dd).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #51   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           31        31           
  Lines         2581      2581           
=========================================
  Hits          2581      2581           

☔ View full report in Codecov by Harness.
📢 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
Contributor

Benchmark diff: 3f682fe → 76ceb75 (10 runs)

goos: linux
goarch: amd64
pkg: github.com/insei/tinyconf/v2
cpu: AMD EPYC 9V74 80-Core Processor                
                    │  base.txt   │              head.txt              │
                    │   sec/op    │   sec/op     vs base               │
Parse-4               6.048µ ± 0%   6.059µ ± 3%       ~ (p=0.197 n=10)
Parse_SubConfig-4     2.182µ ± 0%   2.183µ ± 1%       ~ (p=0.469 n=10)
Current-4             42.69n ± 0%   42.72n ± 1%       ~ (p=0.085 n=10)
Current_SubConfig-4   77.08n ± 0%   77.07n ± 7%       ~ (p=0.725 n=10)
geomean               456.5n        456.8n       +0.08%

                    │    base.txt    │               head.txt                │
                    │      B/op      │     B/op      vs base                 │
Parse-4               4.899Ki ± 0%     4.899Ki ± 0%       ~ (p=1.000 n=10)
Parse_SubConfig-4     1.367Ki ± 0%     1.367Ki ± 0%       ~ (p=1.000 n=10) ¹
Current-4               0.000 ± 0%       0.000 ± 0%       ~ (p=1.000 n=10) ¹
Current_SubConfig-4     0.000 ± 0%       0.000 ± 0%       ~ (p=1.000 n=10) ¹
geomean                            ²                 +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

                    │   base.txt   │              head.txt               │
                    │  allocs/op   │ allocs/op   vs base                 │
Parse-4               139.0 ± 0%     139.0 ± 0%       ~ (p=1.000 n=10) ¹
Parse_SubConfig-4     44.00 ± 0%     44.00 ± 0%       ~ (p=1.000 n=10) ¹
Current-4             0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
Current_SubConfig-4   0.000 ± 0%     0.000 ± 0%       ~ (p=1.000 n=10) ¹
geomean                          ²               +0.00%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

pkg: github.com/insei/tinyconf/v2/drivers
                │  base.txt   │              head.txt              │
                │   sec/op    │   sec/op     vs base               │
Parse_Drivers-4   50.14µ ± 0%   50.34µ ± 1%  +0.39% (p=0.007 n=10)

                │   base.txt   │             head.txt             │
                │     B/op     │     B/op      vs base            │
Parse_Drivers-4   32.04Ki ± 0%   32.04Ki ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

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

@Insei
Insei merged commit 335bb93 into main Oct 18, 2026
4 checks passed
@Insei
Insei deleted the upgrading-errors branch October 18, 2026 15:18
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