2025-02-12 13:25:37 +01:00

19 lines
381 B
Nim

import ../../codexcrawler/services/metrics
type MockMetrics* = ref object of Metrics
todo*: int
ok*: int
nok*: int
method setTodoNodes*(m: MockMetrics, value: int) =
m.todo = value
method setOkNodes*(m: MockMetrics, value: int) =
m.ok = value
method setNokNodes*(m: MockMetrics, value: int) =
m.nok = value
proc createMockMetrics*(): MockMetrics =
MockMetrics()