mirror of
https://github.com/logos-storage/logos-storage-network-crawler.git
synced 2026-01-03 22:13:09 +00:00
21 lines
511 B
Nim
21 lines
511 B
Nim
import pkg/chronos
|
|
import pkg/questionable/results
|
|
|
|
import ../../../codexcrawler/components/todolist
|
|
import ../../../codexcrawler/types
|
|
|
|
type MockTodoList* = ref object of TodoList
|
|
popReturn*: ?!Nid
|
|
|
|
method pop*(t: MockTodoList): Future[?!Nid] {.async: (raises: []).} =
|
|
return t.popReturn
|
|
|
|
method start*(t: MockTodoList): Future[?!void] {.async.} =
|
|
return success()
|
|
|
|
method stop*(t: MockTodoList): Future[?!void] {.async.} =
|
|
return success()
|
|
|
|
proc createMockTodoList*(): MockTodoList =
|
|
MockTodoList()
|