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

kahwee / bunki / 18694033265
88%

Build:
DEFAULT BRANCH: main
Ran 21 Oct 2025 06:36PM UTC
Jobs 1
Files 10
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

21 Oct 2025 06:36PM UTC coverage: 85.619% (+0.2%) from 85.418%
18694033265

push

github

kahwee
feat: add zero-copy streaming functions to file-utils

Add two new advanced Bun file I/O functions:

1. createFileWriter(filePath, highWaterMark)
   - Creates buffered file writer for incremental writes
   - Uses Bun's native API with configurable buffer size (default 1MB)
   - Perfect for streaming large files or building content incrementally
   - Zero-copy to disk with backpressure handling

2. writeToStdout(filePath)
   - Writes file content to stdout using zero-copy mechanism
   - Similar to `cat file.txt` but implemented in TypeScript
   - No data loaded into application memory during transfer
   - Useful for CLI tools that need to output file contents

Updated copyFile() documentation to emphasize zero-copy behavior:
- Bun.write(target, BunFile) uses kernel-level copy
- No application memory involved in file transfer
- Performance comparable to native OS tools

Added 3 comprehensive tests for new functions:
- Incremental write buffering with flush/end
- Stdout streaming without error
- Error handling for non-existent files

Test count: 163 → 166 tests (571 → 574 assertions)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

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

1417 of 1655 relevant lines covered (85.62%)

45.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18694033265.1 21 Oct 2025 06:36PM UTC 10
85.62
GitHub Action Run
Source Files on build 18694033265
  • Tree
  • List 10
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18694033265
  • 93dc7ba3 on github
  • Prev Build on main (#18693961328)
  • Next Build on main (#18694040636)
  • 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