mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Updated unit tests
-Added tests for functions -Added error class and return from package manager functions -Updated `compile.sh` script
This commit is contained in:
parent
d4b1ea90c6
commit
5ffce72fa5
7 changed files with 109 additions and 42 deletions
|
|
@ -8,6 +8,12 @@ namespace gdpm{
|
|||
error(int code = 0, const std::string& message = ""):
|
||||
m_code(code), m_message(message)
|
||||
{}
|
||||
|
||||
void set_code(int code) { m_code = code; }
|
||||
void set_message(const std::string& message) { m_message = message; }
|
||||
|
||||
int get_code() const { return m_code; }
|
||||
std::string get_message() const { return m_message; }
|
||||
|
||||
private:
|
||||
int m_code;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue