• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jeffotoni / quick / 227
51%

Build:
DEFAULT BRANCH: main
Ran 07 Mar 2025 07:28AM UTC
Jobs 1
Files 88
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Mar 2025 07:14AM UTC coverage: 56.652% (+8.3%) from 48.388%
227

push

circleci

jeffotoni
Summary of Today's Refactoring in Quick

Today was the "D" day our refactoring further improved Quick, covering fundamental aspects of the framework.
I spent most of my time researching and seeing good practices, refactoring and doing all the test coverage.

Code Fixes and Improvements
1. Fix for the createParamsAndValid Function
• We adjusted the extraction of regex parameters, ensuring that the correct values were captured.
• We removed an unnecessary check ("/"+reqURI != builder.String()), since the URL reconstruction was already validated correctly.

2. Fix for the Listen and ListenWithShutdown Functions
• The server would shut down immediately because Listen did not block execution correctly. We implemented option 2, ensuring that the server remained active until it was shut down.

3. Compression Middleware (compress.Gzip)
• We improved the implementation of the Gzip middleware, ensuring the safe closure of the writer and adding the Vary: Accept-Encoding header.
• We created 100% covered tests, ensuring correct compression and decompression of the data.

Improved Testing and Full Coverage
4. We Created New Tests to Cover Unmet Cases
• We expanded the tests for createParamsAndValid, ensuring full coverage for different route and regex patterns.
• We fixed and ensured that extractBodyBytes correctly handled read errors.
• The mwWrapper function is now tested correctly for all middleware variants.

5. Increased Code Coverage
• We achieved full coverage in critical parts of the framework, fixing cases where errors were not tested properly.
• We improved test resilience, avoiding infinite loops and ensuring that all executions were validated correctly.

114 of 118 new or added lines in 3 files covered. (96.61%)

4 existing lines in 2 files now uncovered.

2159 of 3811 relevant lines covered (56.65%)

2619.34 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
79.59
15.01% ctx.go
2
89.66
26.5% middleware/compress/compress.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
89.66
26.5% middleware/compress/compress.go
3
0.0
-100.0% middleware/compress/mock.go
Jobs
ID Job ID Ran Files Coverage
1 227.1 07 Mar 2025 07:28AM UTC 88
56.65
CircleCI Job
Source Files on build 227
  • Tree
  • List 88
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #227
  • 96192401 on github
  • Prev Build on main (#226)
  • Next Build on main (#228)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc