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

qmuntal / opc / 7045322930
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.7.12
DEFAULT BRANCH: master
Ran 30 Nov 2023 04:41PM UTC
Jobs 2
Files 7
Run time 2s
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

30 Nov 2023 08:16AM UTC coverage: 97.257% (+0.3%) from 96.938%
7045322930

Pull #20

github

cristiancreteanu
Fix escaping in part name normalization

The iteration of reading the input string of the function was
problematic. When finding a pre-encoded character, for instance
%28 (which is an open bracket - '('), all three characters were
written in the destination string, but the reading of the input
string continued with the character after '%', which was '2'. The
correct behavior is for the reading to continue with the character
after '8'.

The writing in the destination also had a bug. Instead of writing
the 3 characters ('%', '2' and '8') one after another, the first
two were written correctly, namely at position j and j+1 in the
destination string, but the third character was written at j+3
instead of at j+2.

This problem had not appeared before in the tests in part_test,
because there was no test case that has both a pre-encoded
character and a character to be encoded. When there are no
characters to be encoded in the input string, the string is
returned as it was given in the input. Such a test case would have
resulted in an index out of range error.
Pull Request #20: Fix escaping in part name normalization

2 of 2 new or added lines in 1 file covered. (100.0%)

922 of 948 relevant lines covered (97.26%)

797.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Go-1.15.x - 7045322930.1 30 Nov 2023 04:42PM UTC 7
97.26
GitHub Action Run
2 Go-1.16.x - 7045322930.2 30 Nov 2023 04:42PM UTC 7
97.26
GitHub Action Run
Source Files on build 7045322930
  • Tree
  • List 7
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #20
  • PR Base - master (#611690713)
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