mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Unit tests
- Added tests for Transport class
This commit is contained in:
parent
04c6c11175
commit
0930f3c5f7
5 changed files with 96 additions and 11 deletions
|
@ -33,23 +33,23 @@
|
|||
class Transport {
|
||||
public:
|
||||
Transport (const std::string&, const std::string&, const std::string&, const std::string&);
|
||||
Transport (const std::string&);
|
||||
Transport (const std::string&);
|
||||
~Transport ();
|
||||
|
||||
static Transport* getTransport(const std::string&);
|
||||
static Transport* getTransport(const std::string&);
|
||||
|
||||
void parseUri (std::string);
|
||||
void parseUri (std::string);
|
||||
virtual void send (const std::string&) = 0;
|
||||
virtual void recv (std::string) = 0;
|
||||
|
||||
protected:
|
||||
std::string executable;
|
||||
std::vector<std::string> arguments;
|
||||
std::string executable;
|
||||
std::vector<std::string> arguments;
|
||||
|
||||
std::string host;
|
||||
std::string path;
|
||||
std::string port;
|
||||
std::string user;
|
||||
std::string host;
|
||||
std::string path;
|
||||
std::string port;
|
||||
std::string user;
|
||||
|
||||
int execute();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue