Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/esengine/esengine
/ EventSystem.test.ts
File
EventSystem.test.ts
packages/core/tests/ECS/Core/EventSystem.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ TypeSafeEventSystem, GlobalEventSystem } from
'../../../src/ECS/Core/EventSystem'
;
2
import
{ ECSEventType } from
'../../../src/ECS/CoreEvents'
;
3
4
// 测试事件数据类型
Callers
nothing calls this directly
Calls
10
now
Method · 0.80
push
Method · 0.65
clear
Method · 0.65
getStats
Method · 0.65
on
Method · 0.45
emit
Method · 0.45
off
Method · 0.45
once
Method · 0.45
log
Method · 0.45
forEach
Method · 0.45
Tested by
no test coverage detected