SimulationEngine.snapshot() 等价于 SnapshotManager.take()。
(self)
| 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 计数器值。""" |
nothing calls this directly
no test coverage detected