MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / assertNTasks

Method assertNTasks

src/Hooks.cpp:397–404  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

395
396////////////////////////////////////////////////////////////////////////////////
397void Hooks::assertNTasks(const std::vector<std::string>& input, unsigned int n,
398 const std::string& script) const {
399 if (input.size() != n) {
400 Context::getContext().error(
401 format(STRING_HOOK_ERROR_BAD_NUM, n, (int)input.size(), Path(script).name()));
402 throw 0;
403 }
404}
405
406////////////////////////////////////////////////////////////////////////////////
407void Hooks::assertSameTask(const std::vector<std::string>& input, const Task& task,

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected