Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph Store HTTP Protocol (GET, POST) back end #1668

Merged
merged 25 commits into from
Jan 22, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add some comments in tests
  • Loading branch information
Qup42 committed Dec 8, 2024
commit 2fd96778020664bb73b42ebeb248d4bc2963c2f1
5 changes: 5 additions & 0 deletions test/GraphStoreProtocolTest.cpp
Original file line number Diff line number Diff line change
@@ -14,16 +14,21 @@
namespace m = matchers;

TEST(GraphStoreProtocolTest, extractTargetGraph) {
// Equivalent to `/?default`
EXPECT_THAT(GraphStoreProtocol::extractTargetGraph({{"default", {""}}}),
DEFAULT{});
// Equivalent to `/?graph=foo`
EXPECT_THAT(GraphStoreProtocol::extractTargetGraph({{"graph", {"foo"}}}),
TripleComponent::Iri::fromIriref("<foo>"));
// Equivalent to `/` or `/?`
AD_EXPECT_THROW_WITH_MESSAGE(
GraphStoreProtocol::extractTargetGraph({}),
testing::HasSubstr("No graph IRI specified in the request."));
// Equivalent to `/?unrelated=a&unrelated=b`
AD_EXPECT_THROW_WITH_MESSAGE(
GraphStoreProtocol::extractTargetGraph({{"unrelated", {"a", "b"}}}),
testing::HasSubstr("No graph IRI specified in the request."));
// Equivalent to `/?default&graph=foo`
AD_EXPECT_THROW_WITH_MESSAGE(
GraphStoreProtocol::extractTargetGraph(
{{"default", {""}}, {"graph", {"foo"}}}),
Loading