MCPcopy Create free account
hub / github.com/bombshell-dev/clack / MockWritable

Class MockWritable

packages/core/test/mock-writable.ts:3–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { Writable } from 'node:stream';
2
3export class MockWritable extends Writable {
4 public buffer: string[] = [];
5
6 _write(
7 chunk: any,
8 _encoding: BufferEncoding,
9 callback: (error?: Error | null | undefined) => void
10 ): void {
11 this.buffer.push(chunk.toString());
12 callback();
13 }
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected