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

clay / clay-kiln / 5299

pending completion
5299

push

circleci

web-flow
🍕 Fix export format for Buffer service (#1564)

1246 of 3611 branches covered (34.51%)

Branch coverage included in aggregate %.

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

2171 of 6178 relevant lines covered (35.14%)

6.3 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/utils/buffer.js
1
// The reason for this library is to use something that is not maintained by us.
2
// Some of the functions that were used in the browser to encode/decode
3
// are or have been deprecated over time. This ensures a little bit more reliability.
4
// We want to be able to encode non latin chars.
5
// An example of this is a smart quote ’ -- That value is going to be encoded to `%E2%80%99`.
6
// We store the actual symbol in our database, not the encoded value, so, when decoding it, we ensure we can get the direct symbol
7
// and, in consequence, the page we're looking for.
8
import * as Buffer from 'js-base64';
9

10
export function encode(uri) {
11
  return Buffer.encode(uri);
×
12
};
13

14
export function decode(uri) {
15
  return Buffer.decode(uri);
×
16
};
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