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

charmbracelet / bubbles / 6076175920
37%
master: 45%

Build:
Build:
LAST BUILD BRANCH: v2-exp
DEFAULT BRANCH: master
Ran 04 Sep 2023 05:16PM UTC
Jobs 1
Files 10
Run time 1s
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

04 Sep 2023 05:09PM UTC coverage: 45.641%. Remained the same
6076175920

Pull #185

github

GabrielNagy
feat(textinput): make validation customizable

This PR builds upon the excellent work in #167 and #114 and adds a bit
more customizability to the feature.

Currently, the validation API will completely block text input if the
Validate function returns an error. This commit makes a breaking change
to the ValidateFunc by returning an additonal bool that indicates
whether or not input should be blocked.

This is helpful for cases where the user is requested to type an
existing system path, and the Validate function keeps asserting the
existence of the path. With the current implementation such a validation
is not possible.

For example:

    > /
    Err: nil

    > /t
    Err: /t: No such file or directory

    > /tm
    Err: /tm: No such file or directory

    > /tmp
    Err: nil
Pull Request #185: feat(textinput): make validation customizable

1157 of 2535 relevant lines covered (45.64%)

194.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6076175920.1 04 Sep 2023 05:16PM UTC 0
45.64
GitHub Action Run
Source Files on build 6076175920
Detailed source file information is not available for this build.
  • Back to Repo
  • Pull Request #185
  • PR Base - master (#5928295716)
  • 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

© 2026 Coveralls, Inc