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

muesli / reflow
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: refactor/go-runewidth-to-uniseg
DEFAULT BRANCH: master
Repo Added 28 Nov 2019 01:54AM UTC
Files 10
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

LAST BUILD ON BRANCH refactor/go-runewidth-to-uniseg
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • compressor
  • dependabot/github_actions/actions/checkout-3
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/setup-go-3
  • dependabot/github_actions/actions/setup-go-4
  • dependabot/github_actions/golangci/golangci-lint-action-3
  • dependabot/go_modules/github.com/mattn/go-runewidth-0.0.14
  • dependabot/go_modules/github.com/mattn/go-runewidth-0.0.15
  • github-workflows
  • master
  • refs/tags/v0.3.0
  • v0.1.0

29 Jan 2024 10:15PM UTC coverage: 100.0%. Remained the same
7703176316

Pull #71

github

mikelorant
Replace go-runewidth with uniseg

Replace the use of `RuneWidth` and `StringWidth` from `mattn/go-
runewidth` with equivalent functions from `rivo/uniseg`.

It is important to be aware that using `RuneWidth` will not be accurate
as the width of a rune cannot be determined in isolation. This requires
a shift to thinking about grapheme clusters instead.

Unfortunately due to the complexity of identifying grapheme clusters,
there has been some signifcant performance regressions in two
functions:

- PrintableRuneWidth: 10x slower
- TruncateString: 4x slower

Two other functions have had performance improvements:

- MarginString: 2x faster
- PaddingString: 2x faster

The documentation for `rivo/uniseg` mentions the use of `Step` and
`StepString` performing "orders of magnitude faster" than using the
`NewGraphemes` method. However, implementing these changes only
resulted in a 10% performance increase.

Signed-off-by: Michael Lorant <michael.lorant@nine.com.au>
Pull Request #71: Replace go-runewidth with uniseg

576 of 576 relevant lines covered (100.0%)

28.59 hits per line

Relevant lines Covered
Build:
Build:
576 RELEVANT LINES 576 COVERED LINES
28.59 HITS PER LINE
Source Files on master
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
7703176316 refactor/go-runewidth-to-uniseg Replace go-runewidth with uniseg Replace the use of `RuneWidth` and `StringWidth` from `mattn/go- runewidth` with equivalent functions from `rivo/uniseg`. It is important to be aware that using `RuneWidth` will not be accurate as the width of a ... Pull #71 30 Jan 2024 05:01AM UTC mikelorant github
100.0
7693312109 refactor/go-runewidth-to-uniseg Replace go-runewidth with uniseg Replace the use of `RuneWidth` and `StringWidth` from `mattn/go- runewidth` with equivalent functions from `rivo/uniseg`. It is important to be aware that using `RuneWidth` will not be accurate as the width of a ... Pull #71 29 Jan 2024 12:10PM UTC mikelorant github
100.0
7617164640 uniseg-stringwidth chore: bump to go 1.18 Pull #69 24 Jan 2024 02:52PM UTC maaslalani github
100.0
6076434462 dependabot/github_actions/actions/checkout-4 Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)... Pull #62 04 Sep 2023 05:56PM UTC web-flow github
100.0
6076434480 dependabot/github_actions/actions/checkout-4 Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)... Pull #62 04 Sep 2023 05:56PM UTC web-flow github
100.0
5648162953 dependabot/go_modules/github.com/mattn/go-runewidth-0.0.15 Bump github.com/mattn/go-runewidth from 0.0.14 to 0.0.15 Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.14 to 0.0.15. - [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.14...v0.0.15) --- updated... push 24 Jul 2023 05:54PM UTC web-flow github
100.0
5648163067 dependabot/go_modules/github.com/mattn/go-runewidth-0.0.15 Bump github.com/mattn/go-runewidth from 0.0.14 to 0.0.15 Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.14 to 0.0.15. - [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.14...v0.0.15) --- updated... Pull #60 24 Jul 2023 05:54PM UTC web-flow github
100.0
4435850961 master Bump actions/setup-go from 3 to 4 push 16 Mar 2023 10:10AM UTC Christian Muehlhaeuser github
100.0
4429074558 dependabot/github_actions/actions/setup-go-4 Bump actions/setup-go from 3 to 4 Pull #53 15 Mar 2023 05:18PM UTC GitHub github
100.0
4429074502 dependabot/github_actions/actions/setup-go-4 Bump actions/setup-go from 3 to 4 push 15 Mar 2023 05:17PM UTC GitHub github
100.0
See All Builds (160)
  • Repo on GitHub
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