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

charmbracelet / bubbles / 8275750516
37%
master: 45%

Build:
Build:
LAST BUILD BRANCH: v2-exp
DEFAULT BRANCH: master
Ran 14 Mar 2024 05:06AM UTC
Jobs 1
Files 21
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

14 Mar 2024 05:02AM UTC coverage: 37.122% (+0.5%) from 36.648%
8275750516

Pull #496

github

mikelorant
refactor(textarea): Improve setting width

When setting the width of the textarea there were some issues
preventing this from working correctly. These problems included:

- If the maximum width needed to be used, the width of the textarea did
  not take into account the prompt and line number width.
- The viewport width did not take into account the style width.

The entire function was confusing to understand and a refactor was
warranted.

As part of this refactor, the bugs mentioned above were fixed and the
code was simplified.

To verify that the logic works as expected, unit tests were expanded to
validate that setting the width works as expected.

Signed-off-by: Michael Lorant <michael.lorant@nine.com.au>
Pull Request #496: refactor(textarea): Improve setting width

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

103 existing lines in 1 file now uncovered.

1558 of 4197 relevant lines covered (37.12%)

69.52 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
103
59.49
2.23% textarea/textarea.go
Jobs
ID Job ID Ran Files Coverage
1 8275750516.1 14 Mar 2024 05:06AM UTC 21
37.12
GitHub Action Run
Source Files on build 8275750516
  • Tree
  • List 21
  • Changed 4
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #496
  • PR Base - master (#8274019070)
  • Delete
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

© 2025 Coveralls, Inc