MCPcopy Create free account
hub / github.com/PRQL/prql / test_var_def

Function test_var_def

prqlc/prqlc/src/codegen/ast.rs:690–715  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

688
689 #[test]
690 fn test_var_def() {
691 assert_is_formatted(
692 r#"
693let a
694"#,
695 );
696
697 assert_is_formatted(
698 r#"
699let a <int>
700"#,
701 );
702
703 assert_is_formatted(
704 r#"
705let a = 5
706"#,
707 );
708
709 assert_is_formatted(
710 r#"
7115
712into a
713"#,
714 );
715 }
716
717 #[test]
718 fn test_query_def() {

Callers

nothing calls this directly

Calls 1

assert_is_formattedFunction · 0.85

Tested by

no test coverage detected