INNER CODE UNIT · Rust

test_input

obmarg/cynic · cynic-parser/src/lib.rs:173

    fn test_input() {
        insta::assert_snapshot!(
            parse_type_system_document(
                r#"
                "I am a description"
                input MyType @hello { query: String = "Hello" }
                "#
            ).unwrap().to_sdl_pretty(),
            @r###"
        "I am a description"
        input MyType @hello {
          query: String = "Hello"
        }
        "###
        );
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…