graphql-engine/v3/engine/tests/explain.rs
paritosh-08 e12888f0e7 add /v1/explain endpoint (#252)
Co-authored-by: Anon Ray <ecthiender@users.noreply.github.com>
V3_GIT_ORIGIN_REV_ID: 22630e7b4af8f3a535a6017fcaa7d70d581d3ae3
2024-01-08 10:41:31 +00:00

53 lines
1.2 KiB
Rust

#[allow(dead_code)]
mod common;
#[test]
fn test_explain_introspection() {
common::test_execute_explain("explain/metadata.json", "explain/introspection_query/");
}
#[test]
fn test_multi_root_field_queries() {
common::test_execute_explain("explain/metadata.json", "explain/multi_root_field_queries/");
}
#[test]
fn test_field_with_remote_relationship() {
common::test_execute_explain(
"explain/metadata.json",
"explain/field_with_remote_relationship/",
);
}
#[test]
fn test_field_with_local_relationship() {
common::test_execute_explain(
"explain/metadata.json",
"explain/field_with_local_relationship/",
);
}
#[test]
fn test_field_with_multi_remote_relationship_subfields() {
common::test_execute_explain(
"explain/metadata.json",
"explain/field_with_multi_remote_relationship_subfields/",
);
}
#[test]
fn test_field_with_nested_remote_relationship_1() {
common::test_execute_explain(
"explain/metadata.json",
"explain/field_with_nested_remote_relationship_1/",
);
}
#[test]
fn test_field_with_nested_remote_relationship_2() {
common::test_execute_explain(
"explain/metadata.json",
"explain/field_with_nested_remote_relationship_2/",
);
}