mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 19:17:19 +02:00
Hooks
- Hooks now verify the expected number of JSON lines emitted by hook scripts.
This commit is contained in:
parent
ec919a8677
commit
3cce6c23f5
4 changed files with 192 additions and 155 deletions
|
@ -51,8 +51,11 @@ public:
|
|||
|
||||
private:
|
||||
std::vector <std::string> scripts (const std::string&);
|
||||
void separateOutput (const std::vector <std::string>&, std::vector <std::string>&, std::vector <std::string>&) const;
|
||||
bool isJSON (const std::string&) const;
|
||||
bool JSONContainsUUID (const std::string&, const std::string&) const;
|
||||
void assertValidJSON (const std::vector <std::string>&) const;
|
||||
void assertNTasks (const std::vector <std::string>&, int) const;
|
||||
void assertSameTask (const std::vector <std::string>&, const Task&) const;
|
||||
int callHookScript (const std::string&, const std::vector <std::string>&, std::vector <std::string>&);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue