MCPcopy Create free account
hub / github.com/code-pushup/cli / constructor

Method constructor

packages/utils/src/lib/wal.ts:158–163  ·  view source on GitHub ↗

* Create a new WAL file instance. * @param options - Configuration options

(options: { file: string; codec: Codec<T> })

Source from the content-addressed store, hash-verified

156 * @param options - Configuration options
157 */
158 constructor(options: { file: string; codec: Codec<T> }) {
159 this.#file = options.file;
160 const c = createTolerantCodec(options.codec);
161 this.#decode = c.decode;
162 this.#encode = c.encode;
163 }
164
165 /** Get the file path for this WAL */
166 getPath = () => this.#file;

Callers

nothing calls this directly

Calls 1

createTolerantCodecFunction · 0.85

Tested by

no test coverage detected