MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / countEvents

Method countEvents

sdk/e2e/utils/event-collector.ts:112–114  ·  view source on GitHub ↗

Count events of a specific type

(type: PrintModeEvent['type'])

Source from the content-addressed store, hash-verified

110
111 /** Count events of a specific type */
112 countEvents(type: PrintModeEvent['type']): number {
113 return this.events.filter((e) => e.type === type).length
114 }
115
116 /** Clear all collected events */
117 clear(): void {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected