MCPcopy Create free account
hub / github.com/Tong89/smartNode / test_snapshot_engine_method

Method test_snapshot_engine_method

tests/test_snapshot.py:95–100  ·  view source on GitHub ↗

SimulationEngine.snapshot() 等价于 SnapshotManager.take()。

(self)

Source from the content-addressed store, hash-verified

93 assert total >= 1
94
95 def test_snapshot_engine_method(self):
96 """SimulationEngine.snapshot() 等价于 SnapshotManager.take()。"""
97 eng = _make_engine()
98 snap = eng.snapshot(label="via-engine")
99 assert snap["version"] == SNAPSHOT_VERSION
100 assert snap["label"] == "via-engine"
101
102 def test_snapshot_id_counter(self):
103 """快照记录拍摄时的 ID 计数器值。"""

Callers

nothing calls this directly

Calls 2

snapshotMethod · 0.80
_make_engineFunction · 0.70

Tested by

no test coverage detected