MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / event-buffer.test.ts

File event-buffer.test.ts

packages/db/src/buffers/event-buffer.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { Readable } from 'node:stream';
2import { getRedisCache } from '@openpanel/redis';
3import { afterAll, beforeEach, describe, expect, it, vi } from 'vitest';
4import * as chClient from '../clickhouse/client';

Callers

nothing calls this directly

Calls 12

getRedisCacheFunction · 0.90
extractProjectIdFunction · 0.90
streamToLinesFunction · 0.85
getBufferSizeMethod · 0.80
parseMethod · 0.80
getActiveVisitorCountMethod · 0.80
bulkAddMethod · 0.80
addMethod · 0.45
flushMethod · 0.45
processBufferMethod · 0.45
fromMethod · 0.45
stringifyMethod · 0.45

Tested by

no test coverage detected