mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 15:47:19 +02:00
Unit Tests - Config
- Added unit tests for Config. Why didn't I do this a year ago? - Shut off old 1.7.0 code (gulp). - Task now thoroughly broken, and only 1.8.0 can help.
This commit is contained in:
parent
d702ba8f24
commit
7a219c999e
8 changed files with 121 additions and 49 deletions
|
@ -57,49 +57,6 @@ Context::Context ()
|
|||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Context::Context (const Context& other)
|
||||
{
|
||||
throw std::string ("unimplemented Context::Context");
|
||||
config = other.config;
|
||||
filter = other.filter;
|
||||
keymap = other.keymap;
|
||||
sequence = other.sequence;
|
||||
subst = other.subst;
|
||||
task = other.task;
|
||||
tdb = other.tdb;
|
||||
stringtable = other.stringtable;
|
||||
program = other.program;
|
||||
args = other.args;
|
||||
cmd = other.cmd;
|
||||
messages = other.messages;
|
||||
footnotes = other.footnotes;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Context& Context::operator= (const Context& other)
|
||||
{
|
||||
throw std::string ("unimplemented Context::operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
config = other.config;
|
||||
filter = other.filter;
|
||||
keymap = other.keymap;
|
||||
sequence = other.sequence;
|
||||
subst = other.subst;
|
||||
task = other.task;
|
||||
tdb = other.tdb;
|
||||
stringtable = other.stringtable;
|
||||
program = other.program;
|
||||
args = other.args;
|
||||
cmd = other.cmd;
|
||||
messages = other.messages;
|
||||
footnotes = other.footnotes;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Context::~Context ()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue