Skip to content

Commit

Permalink
deduplicate golang test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kentslaney committed Dec 1, 2023
1 parent 48c21f3 commit d6f2b44
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/test_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,6 @@ TEST(test_unix, host_parse_regression) {
ASSERT_STREQ(out.alias, "testing");
}

TEST(test_unix, host_parse_regression_tripped) {
char test[] = "127.0.0.1:21211 127.0.0.1:21211";
ServerSpec out = splitServerString(test);
ASSERT_STREQ(out.host, "127.0.0.1");
ASSERT_STREQ(out.port, "21211");
ASSERT_STREQ(out.alias, "127.0.0.1:21211");
}

TEST(test_unix, tmpname) {
char test[] = "127.0.0.1:invalid_port";
ServerSpec out = splitServerString(test);
ASSERT_STREQ(out.host, "127.0.0.1");
ASSERT_STREQ(out.port, "invalid_port");
ASSERT_EQ(out.alias, nullptr);
}

TEST(test_unix, socket_path_spaces) {
char test[] = "/tmp/spacey\\ path testing";
ServerSpec out = splitServerString(test);
Expand Down

0 comments on commit d6f2b44

Please sign in to comment.