-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
26 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
#pragma once | ||
#include <gtest/gtest.h> | ||
#include <reproc++/reproc.hpp> | ||
|
||
/** | ||
* @class DockerTest | ||
* @brief GoogleTest fixture that starts and stops a Docker container for each test. | ||
* @brief Test fixture that starts and stops a Docker container for each test. | ||
* | ||
* This test fixture is meant for use in end-to-end (E2E) tests for the Iggy C++ client. | ||
* It will start up the latest Iggy server inside a Docker container, allow you to | ||
* interact with it, then stop and remove the container in the TearDown() method. | ||
*/ | ||
class DockerTest : public ::testing::Test { | ||
protected: | ||
class IggyRunner { | ||
private: | ||
reproc::process process; | ||
|
||
void SetUp() override; | ||
|
||
void TearDown() override; | ||
public: | ||
IggyRunner(); | ||
~IggyRunner(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
#include <gtest/gtest.h> | ||
#define CATCH_CONFIG_MAIN | ||
#include <catch.hpp> | ||
#include "../sdk/model.h" | ||
|
||
TEST(ModelTest, DefaultConstructor) { | ||
// Create a Message object using the default constructor | ||
TEST_CASE("simple test for model objects", "[model]") { | ||
iggy::model::system::Stats stats; | ||
|
||
// Perform assertions to verify the expected behavior | ||
// For example, you can check if the message object is not null | ||
ASSERT_NE(nullptr, &stats); | ||
REQUIRE(&stats != nullptr); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"dependencies": [ | ||
"ada-url", | ||
"catch2", | ||
"icu", | ||
"libsodium", | ||
"libuv", | ||
|