FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add wasm test that input prompt using line not character buffering for stdin by ianthomas23 · Pull Request #146 · QuantStack/git2cpp · GitHub

Repository navigation

Add wasm test that input prompt using line not character buffering for stdin - #146

Merged
JohanMabille merged 3 commits into
mainfrom
test-stdin-commit-msg
Apr 30, 2026
Merged

JohanMabille merged 3 commits into
mainfrom
test-stdin-commit-msg

Conversation

Copy link
Copy Markdown
Member

The correct handling in WebAssembly of the input prompt used for commit messages (issue #44) was fixed in cockle in jupyterlite/cockle#309. This PR adds a test to confirm the fix by using a backspace character in the input prompt to delete the previous character, thus confirming that stdin is using line buffering not individual character buffering.

The new test is disabled if not running in WebAssembly. It already worked correctly in a manual test but running it via python's subprocess.run doesn't work without us using something more complicated like an input pipe to send the stdin characters, and that approach cannot work in WebAssembly so we'd have to implement some new workaround and it is not worth the effort.

Closes #44.

codecov Bot commented Apr 24, 2026 •
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.52%. Comparing base (5b2e65e) to head (c9be559).
⚠️ Report is 28 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #146   +/-   ##
=======================================
  Coverage   88.52%   88.52%           
=======================================
  Files          62       62           
  Lines        2884     2884           
  Branches      358      358           
=======================================
  Hits         2553     2553           
  Misses        331      331           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

ianthomas23 force-pushed the test-stdin-commit-msg branch from fa51d2a to 4217c4d Compare April 28, 2026 15:03
ianthomas23 force-pushed the test-stdin-commit-msg branch from 4217c4d to fb0c151 Compare April 30, 2026 10:48
ianthomas23 force-pushed the test-stdin-commit-msg branch from fb0c151 to c9be559 Compare April 30, 2026 11:05
ianthomas23 marked this pull request as ready for review April 30, 2026 11:05
JohanMabille merged commit 1ea8bec into main Apr 30, 2026
7 checks passed
JohanMabille deleted the test-stdin-commit-msg branch April 30, 2026 12:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prompt to enter commit message doesn't fully work in the JupyterLite terminal

2 participants


Back | FazBrowse Home | New Git URL