├── .python-version ├── rustfmt.toml ├── tests ├── e2e_inputs │ ├── empty_array.json │ ├── empty_object.json │ ├── simple_array.json │ ├── string_long.json │ └── nested_object.json ├── fixtures │ ├── tree_per_slot │ │ ├── a.txt │ │ └── b.txt │ ├── parametric │ │ ├── empty_array.json │ │ ├── empty_object.json │ │ ├── simple_array.json │ │ ├── string_long.json │ │ └── nested_object.json │ ├── bytes_chars │ │ ├── emoji.json │ │ └── long.txt │ ├── chars_vs_bytes │ │ ├── ascii.txt │ │ └── emoji.txt │ ├── tree_per_slot_varied │ │ ├── d.txt │ │ ├── b.txt │ │ ├── c.txt │ │ └── a.txt │ ├── explicit │ │ ├── unicode_flags.json │ │ ├── unicode_emoji_skin_tone.json │ │ ├── unicode_combining.json │ │ ├── unicode_zwj_family.json │ │ ├── object_small.json │ │ ├── string_escaping.json │ │ └── array_numbers_50.json │ ├── mixed_headers │ │ ├── a.json │ │ ├── c.txt │ │ └── b.yaml │ ├── json │ │ └── JSONTestSuite │ │ │ ├── test_parsing │ │ │ ├── n_number_+1.json │ │ │ ├── n_number_0e.json │ │ │ ├── n_single_space.json │ │ │ ├── y_array_empty.json │ │ │ ├── y_number.json │ │ │ ├── y_object_empty.json │ │ │ ├── y_string_pi.json │ │ │ ├── n_array_just_comma.json │ │ │ ├── n_array_just_minus.json │ │ │ ├── n_array_unclosed.json │ │ │ ├── n_number_++.json │ │ │ ├── n_number_+Inf.json │ │ │ ├── n_number_-01.json │ │ │ ├── n_number_-1.0..json │ │ │ ├── n_number_-2..json │ │ │ ├── n_number_-NaN.json │ │ │ ├── n_number_.-1.json │ │ │ ├── n_number_.2e-3.json │ │ │ ├── n_number_0.1.2.json │ │ │ ├── n_number_0.3e+.json │ │ │ ├── n_number_0.3e.json │ │ │ ├── n_number_0.e1.json │ │ │ ├── n_number_0e+.json │ │ │ ├── n_number_1.0e+.json │ │ │ ├── n_number_1.0e-.json │ │ │ ├── n_number_1.0e.json │ │ │ ├── n_number_1eE2.json │ │ │ ├── n_number_2.e+3.json │ │ │ ├── n_number_2.e-3.json │ │ │ ├── n_number_2.e3.json │ │ │ ├── n_number_9.e+.json │ │ │ ├── n_number_Inf.json │ │ │ ├── n_number_NaN.json │ │ │ ├── n_object_emoji.json │ │ │ ├── n_object_no-colon.json │ │ │ ├── n_structure_no_data.json │ │ │ ├── y_array_false.json │ │ │ ├── y_array_null.json │ │ │ ├── y_number_0e+1.json │ │ │ ├── y_number_0e1.json │ │ │ ├── y_string_space.json │ │ │ ├── y_string_utf8.json │ │ │ ├── n_array_double_comma.json │ │ │ ├── n_array_extra_close.json │ │ │ ├── n_array_extra_comma.json │ │ │ ├── n_array_incomplete.json │ │ │ ├── n_array_star_inside.json │ │ │ ├── n_incomplete_false.json │ │ │ ├── n_incomplete_null.json │ │ │ ├── n_incomplete_true.json │ │ │ ├── n_number_0_capital_E+.json │ │ │ ├── n_number_0_capital_E.json │ │ │ ├── n_number_1_000.json │ │ │ ├── n_number_expression.json │ │ │ ├── n_number_hex_1_digit.json │ │ │ ├── n_number_invalid+-.json │ │ │ ├── n_object_missing_key.json │ │ │ ├── n_string_escape_x.json │ │ │ ├── n_structure_end_array.json │ │ │ ├── n_structure_open_object.json │ │ │ ├── n_structure_single_star.json │ │ │ ├── y_array_empty-string.json │ │ │ ├── y_number_after_space.json │ │ │ ├── y_number_minus_zero.json │ │ │ ├── y_number_negative_one.json │ │ │ ├── y_number_negative_zero.json │ │ │ ├── y_number_simple_int.json │ │ │ ├── y_object_empty_key.json │ │ │ ├── y_object_simple.json │ │ │ ├── y_string_in_array.json │ │ │ ├── y_string_unicode.json │ │ │ ├── y_string_unicode_2.json │ │ │ ├── y_structure_lonely_int.json │ │ │ ├── y_structure_string_empty.json │ │ │ ├── n_array_comma_after_close.json │ │ │ ├── n_array_comma_and_number.json │ │ │ ├── n_array_missing_value.json │ │ │ ├── n_array_number_and_comma.json │ │ │ ├── n_multidigit_number_then_00.json │ │ │ ├── n_number_hex_2_digits.json │ │ │ ├── n_number_infinity.json │ │ │ ├── n_number_minus_space_1.json │ │ │ ├── n_number_with_alpha.json │ │ │ ├── n_number_with_leading_zero.json │ │ │ ├── n_object_bad_value.json │ │ │ ├── n_object_double_colon.json │ │ │ ├── n_object_missing_colon.json │ │ │ ├── n_object_missing_value.json │ │ │ ├── n_object_non_string_key.json │ │ │ ├── n_object_single_quote.json │ │ │ ├── n_object_unquoted_key.json │ │ │ ├── n_string_backslash_00.json │ │ │ ├── n_string_escaped_emoji.json │ │ │ ├── n_string_incomplete_escape.json │ │ │ ├── n_string_single_doublequote.json │ │ │ ├── n_string_unescaped_tab.json │ │ │ ├── n_structure_UTF8_BOM_no_data.json │ │ │ ├── n_structure_angle_bracket_..json │ │ │ ├── n_structure_double_array.json │ │ │ ├── n_structure_lone-open-bracket.json │ │ │ ├── n_structure_open_array_comma.json │ │ │ ├── n_structure_open_object_comma.json │ │ │ ├── n_structure_unclosed_array.json │ │ │ ├── n_structure_unicode-identifier.json │ │ │ ├── y_array_arraysWithSpaces.json │ │ │ ├── y_array_with_leading_space.json │ │ │ ├── y_array_with_trailing_space.json │ │ │ ├── y_number_int_with_exp.json │ │ │ ├── y_number_negative_int.json │ │ │ ├── y_number_real_capital_e.json │ │ │ ├── y_number_real_exponent.json │ │ │ ├── y_number_real_neg_exp.json │ │ │ ├── y_object_basic.json │ │ │ ├── y_string_double_escape_a.json │ │ │ ├── y_string_double_escape_n.json │ │ │ ├── y_string_null_escape.json │ │ │ ├── y_string_simple_ascii.json │ │ │ ├── y_string_u+2028_line_sep.json │ │ │ ├── y_string_u+2029_par_sep.json │ │ │ ├── y_structure_lonely_false.json │ │ │ ├── y_structure_lonely_null.json │ │ │ ├── y_structure_lonely_string.json │ │ │ ├── y_structure_lonely_true.json │ │ │ ├── y_structure_true_in_array.json │ │ │ ├── n_array_1_true_without_comma.json │ │ │ ├── n_array_double_extra_comma.json │ │ │ ├── n_array_incomplete_invalid_value.json │ │ │ ├── n_array_inner_array_no_comma.json │ │ │ ├── n_array_unclosed_trailing_comma.json │ │ │ ├── n_number_minus_infinity.json │ │ │ ├── n_number_real_garbage_after_e.json │ │ │ ├── n_number_starting_with_dot.json │ │ │ ├── n_object_bracket_key.json │ │ │ ├── n_object_garbage_at_end.json │ │ │ ├── n_object_missing_semicolon.json │ │ │ ├── n_object_trailing_comma.json │ │ │ ├── n_object_unterminated-value.json │ │ │ ├── n_string_escaped_ctrl_char_tab.json │ │ │ ├── n_string_invalid_backslash_esc.json │ │ │ ├── n_string_start_escape_unclosed.json │ │ │ ├── n_string_unescaped_ctrl_char.json │ │ │ ├── n_string_unicode_CapitalU.json │ │ │ ├── n_string_with_trailing_garbage.json │ │ │ ├── n_structure_U+2060_word_joined.json │ │ │ ├── n_structure_capitalized_True.json │ │ │ ├── n_structure_close_unopened_array.json │ │ │ ├── n_structure_open_array_apostrophe.json │ │ │ ├── n_structure_open_array_open_object.json │ │ │ ├── n_structure_open_array_string.json │ │ │ ├── n_structure_open_object_open_array.json │ │ │ ├── n_structure_trailing_#.json │ │ │ ├── n_structure_whitespace_formfeed.json │ │ │ ├── y_array_ending_with_newline.json │ │ │ ├── y_array_with_1_and_newline.json │ │ │ ├── y_number_real_pos_exponent.json │ │ │ ├── y_number_simple_real.json │ │ │ ├── y_object.json │ │ │ ├── y_string_comments.json │ │ │ ├── y_string_one-byte-utf-8.json │ │ │ ├── y_string_three-byte-utf-8.json │ │ │ ├── y_string_two-byte-utf-8.json │ │ │ ├── y_string_unescaped_char_delete.json │ │ │ ├── y_string_with_del_character.json │ │ │ ├── y_structure_lonely_negative_real.json │ │ │ ├── y_structure_whitespace_array.json │ │ │ ├── n_array_colon_instead_of_comma.json │ │ │ ├── n_array_items_separated_by_semicolon.json │ │ │ ├── n_array_number_and_several_commas.json │ │ │ ├── n_array_unclosed_with_object_inside.json │ │ │ ├── n_number_U+FF11_fullwidth_digit_one.json │ │ │ ├── n_number_neg_int_starting_with_zero.json │ │ │ ├── n_number_neg_real_without_int_part.json │ │ │ ├── n_number_neg_with_garbage_at_end.json │ │ │ ├── n_number_real_without_fractional_part.json │ │ │ ├── n_object_trailing_comment.json │ │ │ ├── n_object_with_trailing_garbage.json │ │ │ ├── n_string_accentuated_char_no_quotes.json │ │ │ ├── n_string_escaped_backslash_bad.json │ │ │ ├── n_string_invalid_unicode_escape.json │ │ │ ├── n_string_no_quotes_with_bad_escape.json │ │ │ ├── n_string_single_quote.json │ │ │ ├── n_structure_angle_bracket_null.json │ │ │ ├── n_structure_array_trailing_garbage.json │ │ │ ├── n_structure_ascii-unicode-identifier.json │ │ │ ├── n_structure_null-byte-outside-string.json │ │ │ ├── n_structure_object_unclosed_no_value.json │ │ │ ├── n_structure_open_array_open_string.json │ │ │ ├── n_structure_open_object_close_array.json │ │ │ ├── n_structure_open_object_open_string.json │ │ │ ├── n_structure_open_open.json │ │ │ ├── n_structure_unclosed_object.json │ │ │ ├── y_array_heterogeneous.json │ │ │ ├── y_number_real_capital_e_neg_exp.json │ │ │ ├── y_number_real_capital_e_pos_exp.json │ │ │ ├── y_object_duplicated_key.json │ │ │ ├── y_string_backslash_doublequotes.json │ │ │ ├── y_string_escaped_noncharacter.json │ │ │ ├── y_string_nbsp_uescaped.json │ │ │ ├── y_string_nonCharacterInUTF-8_U+FFFF.json │ │ │ ├── y_string_unicode_U+FDD0_nonchar.json │ │ │ ├── y_string_unicode_U+FFFE_nonchar.json │ │ │ ├── y_structure_trailing_newline.json │ │ │ ├── n_array_newlines_unclosed.json │ │ │ ├── n_array_spaces_vertical_tab_formfeed.json │ │ │ ├── n_number_invalid-negative-real.json │ │ │ ├── n_object_comma_instead_of_colon.json │ │ │ ├── n_object_key_with_single_quotes.json │ │ │ ├── n_object_several_trailing_commas.json │ │ │ ├── n_object_trailing_comment_open.json │ │ │ ├── n_object_two_commas_in_a_row.json │ │ │ ├── n_string_1_surrogate_then_escape.json │ │ │ ├── n_string_1_surrogate_then_escape_u.json │ │ │ ├── n_string_incomplete_escaped_character.json │ │ │ ├── n_string_incomplete_surrogate.json │ │ │ ├── n_string_single_string_no_double_quotes.json │ │ │ ├── n_string_unescaped_newline.json │ │ │ ├── n_structure_array_with_extra_array_close.json │ │ │ ├── n_structure_array_with_unclosed_string.json │ │ │ ├── n_structure_number_with_trailing_garbage.json │ │ │ ├── n_structure_whitespace_U+2060_word_joiner.json │ │ │ ├── y_array_with_several_null.json │ │ │ ├── y_number_real_fraction_exponent.json │ │ │ ├── y_object_with_newlines.json │ │ │ ├── y_string_allowed_escapes.json │ │ │ ├── y_string_escaped_control_character.json │ │ │ ├── y_string_in_array_with_leading_space.json │ │ │ ├── y_string_nonCharacterInUTF-8_U+10FFFF.json │ │ │ ├── y_string_uEscape.json │ │ │ ├── y_string_uescaped_newline.json │ │ │ ├── y_string_unicodeEscapedBackslash.json │ │ │ ├── n_array_unclosed_with_new_lines.json │ │ │ ├── n_number_minus_sign_with_trailing_garbage.json │ │ │ ├── n_number_with_alpha_char.json │ │ │ ├── n_object_repeated_null_null.json │ │ │ ├── n_object_trailing_comment_slash_open.json │ │ │ ├── n_object_with_single_string.json │ │ │ ├── n_string_1_surrogate_then_escape_u1.json │ │ │ ├── n_string_1_surrogate_then_escape_u1x.json │ │ │ ├── n_string_leading_uescaped_thinspace.json │ │ │ ├── n_structure_object_followed_by_closing_object.json │ │ │ ├── n_structure_object_with_comment.json │ │ │ ├── n_structure_open_object_string_with_apostrophes.json │ │ │ ├── n_structure_uescaped_LF_before_string.json │ │ │ ├── n_structure_unclosed_array_partial_null.json │ │ │ ├── y_object_duplicated_key_and_value.json │ │ │ ├── y_object_escaped_null_in_key.json │ │ │ ├── y_string_accepted_surrogate_pair.json │ │ │ ├── y_string_backslash_and_u_escaped_zero.json │ │ │ ├── y_string_last_surrogates_1_and_2.json │ │ │ ├── y_string_reservedCharacterInUTF-8_U+1BFFF.json │ │ │ ├── y_string_unicode_U+10FFFE_nonchar.json │ │ │ ├── y_string_unicode_U+1FFFE_nonchar.json │ │ │ ├── y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json │ │ │ ├── y_string_unicode_U+2064_invisible_plus.json │ │ │ ├── y_string_unicode_escaped_double_quote.json │ │ │ ├── n_structure_comma_instead_of_closing_brace.json │ │ │ ├── n_structure_object_with_trailing_garbage.json │ │ │ ├── n_structure_unclosed_array_unfinished_false.json │ │ │ ├── n_structure_unclosed_array_unfinished_true.json │ │ │ ├── n_object_non_string_key_but_huge_number_instead.json │ │ │ ├── n_object_trailing_comment_slash_open_incomplete.json │ │ │ ├── y_object_extreme_numbers.json │ │ │ ├── y_string_1_2_3_bytes_UTF-8_sequences.json │ │ │ ├── y_string_accepted_surrogate_pairs.json │ │ │ ├── n_string_incomplete_surrogate_escape_invalid.json │ │ │ ├── y_string_surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json │ │ │ ├── y_number_double_close_to_zero.json │ │ │ ├── y_object_long_strings.json │ │ │ ├── y_object_string_unicode.json │ │ │ ├── n_array_invalid_utf8.json │ │ │ ├── n_array_a_invalid_utf8.json │ │ │ ├── n_structure_single_eacute.json │ │ │ ├── n_number_invalid-utf-8-in-int.json │ │ │ ├── n_structure_incomplete_UTF8_BOM.json │ │ │ ├── n_structure_lone-invalid-utf-8.json │ │ │ ├── n_number_invalid-utf-8-in-exponent.json │ │ │ ├── n_string_invalid-utf-8-in-escape.json │ │ │ ├── n_string_invalid_utf8_after_escape.json │ │ │ ├── n_number_invalid-utf-8-in-bigger-int.json │ │ │ ├── n_number_real_with_invalid_utf8_after_e.json │ │ │ └── n_object_lone_continuation_byte_in_key_and_trailing_comma.json │ │ │ └── README.md │ ├── code │ │ ├── line_budget_alpha.py │ │ └── line_budget_beta.py │ └── yaml │ │ └── yaml-test-suite │ │ ├── HWV9.yaml │ │ ├── 9MMA.yaml │ │ ├── H7TQ.yaml │ │ ├── LHL4.yaml │ │ ├── U99R.yaml │ │ ├── YJV2.yaml │ │ ├── B63P.yaml │ │ ├── SF5V.yaml │ │ ├── 55WF.yaml │ │ ├── AVM7.yaml │ │ ├── SY6V.yaml │ │ ├── QT73.yaml │ │ ├── 2CMS.yaml │ │ └── CXX2.yaml └── snapshots │ ├── e2e__e2e_complex_nested_json__js__n10.snap │ ├── e2e__e2e_mixed_arrays_json__js__n10.snap │ ├── e2e__e2e_empty_array_json__js__n10.snap │ ├── e2e__e2e_empty_array_json__js__n100.snap │ ├── e2e__e2e_empty_array_json__js__n1000.snap │ ├── e2e__e2e_empty_array_json__js__n250.snap │ ├── e2e__e2e_empty_array_json__json__n10.snap │ ├── e2e__e2e_empty_object_json__js__n10.snap │ ├── e2e__e2e_empty_object_json__js__n100.snap │ ├── e2e__e2e_empty_object_json__js__n250.snap │ ├── e2e__e2e_string_long_json__json__n10.snap │ ├── e2e__e2e_complex_nested_json__json__n10.snap │ ├── e2e__e2e_empty_array_json__js__n10000.snap │ ├── e2e__e2e_empty_array_json__json__n100.snap │ ├── e2e__e2e_empty_array_json__json__n1000.snap │ ├── e2e__e2e_empty_array_json__json__n10000.snap │ ├── e2e__e2e_empty_array_json__json__n250.snap │ ├── e2e__e2e_empty_array_json__pseudo__n10.snap │ ├── e2e__e2e_empty_array_json__pseudo__n100.snap │ ├── e2e__e2e_empty_array_json__pseudo__n1000.snap │ ├── e2e__e2e_empty_array_json__pseudo__n10000.snap │ ├── e2e__e2e_empty_array_json__pseudo__n250.snap │ ├── e2e__e2e_empty_object_json__js__n1000.snap │ ├── e2e__e2e_empty_object_json__js__n10000.snap │ ├── e2e__e2e_empty_object_json__json__n10.snap │ ├── e2e__e2e_empty_object_json__json__n100.snap │ ├── e2e__e2e_empty_object_json__json__n1000.snap │ ├── e2e__e2e_empty_object_json__json__n10000.snap │ ├── e2e__e2e_empty_object_json__json__n250.snap │ ├── e2e__e2e_empty_object_json__pseudo__n10.snap │ ├── e2e__e2e_empty_object_json__pseudo__n100.snap │ ├── e2e__e2e_empty_object_json__pseudo__n1000.snap │ ├── e2e__e2e_empty_object_json__pseudo__n250.snap │ ├── e2e__e2e_mixed_arrays_json__json__n10.snap │ ├── e2e__e2e_nested_object_json__json__n10.snap │ ├── e2e__e2e_string_long_json__pseudo__n10.snap │ ├── e2e__e2e_complex_nested_json__pseudo__n10.snap │ ├── e2e__e2e_empty_object_json__pseudo__n10000.snap │ ├── e2e__e2e_mixed_arrays_json__pseudo__n10.snap │ ├── e2e__e2e_nested_object_json__pseudo__n10.snap │ ├── e2e__e2e_simple_array_json__pseudo__n10.snap │ ├── line_budgets__json_pseudo_lines3.snap │ ├── line_budgets__json_strict_lines2.snap │ ├── e2e__e2e_simple_array_json__js__n10.snap │ ├── e2e__e2e_simple_array_json__json__n10.snap │ ├── e2e__e2e_string_long_json__js__n10.snap │ ├── e2e__e2e_nested_object_json__js__n10.snap │ ├── line_budgets__text_lines3_default.snap │ ├── yaml_snapshots__yaml_snapshot_multidoc_stdin.snap │ ├── e2e__e2e_string_long_json__js__n100.snap │ ├── e2e__e2e_string_long_json__js__n1000.snap │ ├── e2e__e2e_string_long_json__js__n250.snap │ ├── e2e_head__e2e_head_mixed_arrays_json__js__n30.snap │ ├── e2e_tail__e2e_tail_mixed_arrays_json__js__n30.snap │ ├── yaml_input__yaml_stdin_basic.snap │ ├── e2e__e2e_string_long_json__js__n10000.snap │ ├── e2e__e2e_string_long_json__json__n100.snap │ ├── e2e__e2e_string_long_json__json__n1000.snap │ ├── e2e__e2e_string_long_json__json__n10000.snap │ ├── e2e__e2e_string_long_json__json__n250.snap │ ├── e2e__e2e_string_long_json__pseudo__n100.snap │ ├── e2e__e2e_string_long_json__pseudo__n1000.snap │ ├── e2e__e2e_string_long_json__pseudo__n10000.snap │ ├── e2e__e2e_string_long_json__pseudo__n250.snap │ ├── e2e_head__e2e_head_complex_nested_json__js__n30.snap │ ├── e2e_tail__e2e_tail_complex_nested_json__js__n30.snap │ ├── text_snapshots__text_stdin_snapshot.snap │ ├── yaml_snapshots__yaml_snapshot_json_input_quoting_digit_key.snap │ ├── yaml_snapshots__yaml_snapshot_json_input_reserved_value.snap │ ├── line_budgets__yaml_lines4.snap │ ├── strings_color_param__color_string_js.snap │ ├── strings_color_param__color_string_json.snap │ ├── yaml_snapshots__yaml_snapshot_basic_stdin.snap │ ├── e2e_head__e2e_head_complex_nested_json__pseudo__n30.snap │ ├── e2e_head__e2e_head_mixed_arrays_json__pseudo__n30.snap │ ├── e2e_head__e2e_head_simple_array_json__js__n30.snap │ ├── e2e_tail__e2e_tail_complex_nested_json__pseudo__n30.snap │ ├── e2e_tail__e2e_tail_mixed_arrays_json__pseudo__n30.snap │ ├── e2e_tail__e2e_tail_simple_array_json__js__n30.snap │ ├── strings_color_param__color_string_pseudo.snap │ ├── e2e__e2e_simple_array_json__js__n100.snap │ ├── e2e__e2e_simple_array_json__js__n1000.snap │ ├── e2e__e2e_simple_array_json__js__n10000.snap │ ├── e2e__e2e_simple_array_json__js__n250.snap │ ├── e2e__e2e_simple_array_json__json__n100.snap │ ├── e2e__e2e_simple_array_json__json__n1000.snap │ ├── e2e__e2e_simple_array_json__json__n10000.snap │ ├── e2e__e2e_simple_array_json__json__n250.snap │ ├── e2e__e2e_simple_array_json__pseudo__n100.snap │ ├── e2e__e2e_simple_array_json__pseudo__n250.snap │ ├── per_slot_snapshots__counted_headers_tiny_line_cap.snap │ ├── e2e__e2e_simple_array_json__pseudo__n1000.snap │ ├── e2e__e2e_simple_array_json__pseudo__n10000.snap │ ├── e2e_head__e2e_head_simple_array_json__pseudo__n30.snap │ ├── e2e_head__e2e_head_simple_array_json__js__n200.snap │ ├── e2e_head__e2e_head_simple_array_json__pseudo__n200.snap │ ├── e2e_tail__e2e_tail_simple_array_json__js__n200.snap │ ├── e2e_tail__e2e_tail_simple_array_json__pseudo__n200.snap │ ├── e2e_tail__e2e_tail_simple_array_json__pseudo__n30.snap │ ├── strings_color_param__color_object_kv_js.snap │ ├── strings_color_param__color_object_kv_json.snap │ ├── strings_color_param__color_object_kv_pseudo.snap │ ├── line_budgets__json_js_lines4.snap │ ├── cpp_text_fallback__cpp_text_fallback_snapshot.snap │ ├── combined_limits__combined_limits_single_file_pseudo_min80.snap │ ├── e2e__e2e_mixed_arrays_json__pseudo__n100.snap │ ├── e2e__e2e_mixed_arrays_json__js__n100.snap │ ├── cli_golden__cli_grep_and_binary_notices.snap │ ├── e2e__e2e_complex_nested_json__json__n100.snap │ ├── e2e__e2e_nested_object_json__js__n100.snap │ ├── per_slot_snapshots__tree_per_slot_line_cap.snap │ ├── text_snapshots__fileset_text_files_snapshot.snap │ ├── e2e__e2e_complex_nested_json__js__n100.snap │ ├── e2e__e2e_nested_object_json__pseudo__n100.snap │ ├── fileset_tree__tree_cli_snapshot_nested_folder_omission.snap │ ├── code_text_fallback_param__code_text_fallback_sample_cpp_stdout.snap │ ├── code_text_fallback_param__code_text_fallback_sample_ts_stdout.snap │ ├── fileset_tree__tree_cli_color_snapshot_with_grep.snap │ ├── e2e__e2e_complex_nested_json__pseudo__n100.snap │ ├── fileset_tree__tree_cli_snapshot_budgeted_root_omission.snap │ ├── code_text_fallback_param__code_text_fallback_Sample_java_stdout.snap │ ├── e2e__e2e_mixed_arrays_json__json__n100.snap │ ├── yaml_suite_snapshots__yaml_suite_4MUZ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_JEF9_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9MQT_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_UKK6_tight.snap │ ├── code_root_sampling__code_auto_sample_colorized_stripped_snapshot.snap │ ├── code_text_fallback_param__code_text_fallback_Sample_tsx_stdout.snap │ ├── yaml_suite_snapshots__yaml_suite_2JQS_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_3ALJ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_3GZX_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4ABK_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4FJ6_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4GC6_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4UYU_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_565N_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_5C5M_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_5KJE_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_5TYM_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_5WE3_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6BFJ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6CA3_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6CK3_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6HB6_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6KGN_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6M2F_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6PBE_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_753E_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_7BMT_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_7BUB_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_8XYN_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9FMG_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9J7A_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9MMW_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9SHH_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9U5K_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9YRD_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_AZ63_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_AZW3_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_BD7L_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_CFD4_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_D9TU_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_DFF7_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_F8F9_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_FH7J_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_FRK4_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_H7J7_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_HMK4_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_J3BT_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_J9HZ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_JKF3_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_JR7V_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_JS2J_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_K3WX_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_K4SU_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_KK5P_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_KMK3_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_LE5A_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_LX3P_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_M5DY_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_MZX3_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_NB6Z_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_NHX8_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_NKF9_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_PW8X_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_Q5MG_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_Q88A_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_Q9WF_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_RZP5_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_RZT7_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_S3PD_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_S4JQ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_S4T7_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_SBG9_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_TD5N_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_U9NS_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_UGM3_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_UT92_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_V55R_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_V9D5_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_W5VH_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_X38W_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_XW4D_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_YD5X_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_ZH7C_tight.snap │ ├── code_text_fallback_param__code_text_fallback_minimal_drop_case_py_stdout.snap │ ├── code_text_fallback_param__code_text_fallback_sample_js_stdout.snap │ ├── code_text_fallback_param__code_text_fallback_sample_py_stdout.snap │ ├── e2e__e2e_nested_object_json__json__n100.snap │ ├── per_slot_snapshots__multibyte_chars_and_bytes_per_slot.snap │ ├── yaml_suite_snapshots__yaml_suite_229Q_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_236B_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_26DV_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_27NA_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_2AUY_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_2CMS_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_2EBW_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_2LFX_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_2SXE_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_2XXW_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_33X3_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_35KP_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_36F6_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_3HFZ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_3MYT_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_3R3P_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_3UYS_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4CQQ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4EJS_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4H7K_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4HVU_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4JVG_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4Q9F_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4QFQ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4RWC_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4V8U_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4WA9_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_4ZYM_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_52DL_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_54T7_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_55WF_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_57H4_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_58MP_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_5BVJ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_5GBF_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_5LLU_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_5MUD_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_5NYZ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_5T43_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_5TRB_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_5U3A_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_62EZ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_652Z_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_65WH_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6BCT_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6FWR_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6H3V_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6JQW_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6JTT_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6JWB_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6LVF_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6S55_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6SLA_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6VJK_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6WLZ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6WPF_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6XDY_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_6ZKB_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_735Y_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_74H7_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_7A4E_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_7FWL_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_7LBH_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_7MNF_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_7T8X_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_7TMG_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_7W2P_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_7Z25_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_7ZZ5_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_82AN_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_87E4_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_8CWC_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_8KB6_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_8MK2_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_8QBE_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_8UDB_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_8XDJ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_93JH_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_93WF_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_96L6_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_96NN_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9BXH_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9C9N_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9CWY_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9DXL_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9HCY_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9JBA_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9KAX_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9KBC_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9MAG_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9SA2_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9TFX_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_9WXW_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_A2M4_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_A6F9_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_A984_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_AB8U_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_B3HG_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_B63P_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_BEC7_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_BF9H_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_BS4K_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_BU8L_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_C2DT_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_C2SP_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_C4HZ_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_CC74_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_CML9_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_CN3R_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_CPZ3_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_CQ3W_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_CT4Q_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_CTN5_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_CUP7_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_CVW2_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_CXX2_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_D49Q_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_D83L_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_D88J_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_DBG4_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_DC7X_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_DHP8_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_DK3J_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_DK4H_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_DMG6_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_DWX9_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_E76Z_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_EB22_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_EHF6_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_EW3V_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_EX5H_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_EXG3_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_F2C7_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_F3CP_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_F6MC_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_FBC9_tight.snap │ ├── yaml_suite_snapshots__yaml_suite_FP8R_tight.snap │ └── yaml_suite_snapshots__yaml_suite_FQ7F_tight.snap ├── src ├── pruner │ └── mod.rs ├── cli │ └── mod.rs ├── serialization │ └── snapshots │ │ ├── headson__serialization__tests__arena_render_empty.snap │ │ ├── headson__serialization__tests__arena_render_empty_yaml.snap │ │ ├── headson__serialization__tests__arena_render_single_yaml.snap │ │ ├── headson__serialization__tests__arena_render_single.snap │ │ ├── headson__serialization__tests__array_omitted_pseudo_head.snap │ │ ├── headson__serialization__tests__array_omitted_pseudo_tail.snap │ │ ├── headson__serialization__tests__array_omitted_yaml_head.snap │ │ ├── headson__serialization__tests__array_omitted_yaml_tail.snap │ │ ├── headson__serialization__tests__array_omitted_js_head.snap │ │ ├── headson__serialization__tests__array_internal_gaps_yaml.snap │ │ ├── headson__serialization__tests__array_omitted_js_tail.snap │ │ ├── headson__serialization__tests__inline_open_array_in_object_json.snap │ │ └── headson__serialization__tests__inline_open_array_in_object_yaml.snap ├── utils │ └── mod.rs └── order │ ├── build │ └── snapshots │ │ └── headson__order__build__tests__order_empty_array_order.snap │ └── mod.rs ├── pytest.ini ├── docs ├── assets │ ├── logo.png │ └── tapes │ │ ├── code.gif │ │ ├── demo.gif │ │ ├── grep.gif │ │ ├── sort.gif │ │ └── tree.gif └── tapes │ └── fixtures │ ├── sort_demo │ ├── src │ │ ├── util.ts │ │ └── main.py │ └── data │ │ ├── alpha.json │ │ └── zeta.json │ └── tree_demo │ └── project │ ├── config │ └── app.yaml │ └── data │ └── users.json ├── .cargo └── config.toml ├── .gitattributes ├── .clippy.toml ├── .release-plz.toml ├── python └── headson │ └── __init__.py └── .config └── nextest.toml /.python-version: -------------------------------------------------------------------------------- 1 | 3.14 2 | -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | max_width = 79 2 | -------------------------------------------------------------------------------- /tests/e2e_inputs/empty_array.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/e2e_inputs/empty_object.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/fixtures/tree_per_slot/a.txt: -------------------------------------------------------------------------------- 1 | a1 2 | a2 3 | -------------------------------------------------------------------------------- /tests/fixtures/tree_per_slot/b.txt: -------------------------------------------------------------------------------- 1 | b1 2 | b2 3 | -------------------------------------------------------------------------------- /tests/e2e_inputs/simple_array.json: -------------------------------------------------------------------------------- 1 | [1, 2, 3, 4, 5] -------------------------------------------------------------------------------- /tests/fixtures/parametric/empty_array.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /tests/fixtures/parametric/empty_object.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /src/pruner/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod budget; 2 | pub mod search; 3 | -------------------------------------------------------------------------------- /tests/fixtures/bytes_chars/emoji.json: -------------------------------------------------------------------------------- 1 | "😀😀😀😀😀" 2 | -------------------------------------------------------------------------------- /tests/fixtures/chars_vs_bytes/ascii.txt: -------------------------------------------------------------------------------- 1 | aaaaaaaaaa 2 | -------------------------------------------------------------------------------- /tests/fixtures/chars_vs_bytes/emoji.txt: -------------------------------------------------------------------------------- 1 | 😀😀😀😀😀 2 | -------------------------------------------------------------------------------- /tests/fixtures/tree_per_slot_varied/d.txt: -------------------------------------------------------------------------------- 1 | d1 2 | d2 3 | -------------------------------------------------------------------------------- /tests/e2e_inputs/string_long.json: -------------------------------------------------------------------------------- 1 | ["abcdefghijklmnopqrstuvwxyz"] -------------------------------------------------------------------------------- /tests/fixtures/explicit/unicode_flags.json: -------------------------------------------------------------------------------- 1 | "🇺🇳🇺🇳🇺🇳" 2 | -------------------------------------------------------------------------------- /tests/fixtures/mixed_headers/a.json: -------------------------------------------------------------------------------- 1 | {"a":1, "b":2, "c":3} 2 | -------------------------------------------------------------------------------- /tests/fixtures/mixed_headers/c.txt: -------------------------------------------------------------------------------- 1 | alpha 2 | beta 3 | gamma 4 | -------------------------------------------------------------------------------- /tests/fixtures/parametric/simple_array.json: -------------------------------------------------------------------------------- 1 | [1, 2, 3, 4, 5] 2 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_+1.json: -------------------------------------------------------------------------------- 1 | [+1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_0e.json: -------------------------------------------------------------------------------- 1 | [0e] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_single_space.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_array_empty.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number.json: -------------------------------------------------------------------------------- 1 | [123e65] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_object_empty.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_pi.json: -------------------------------------------------------------------------------- 1 | ["π"] -------------------------------------------------------------------------------- /src/cli/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod args; 2 | pub mod budget; 3 | pub mod run; 4 | -------------------------------------------------------------------------------- /tests/fixtures/explicit/unicode_emoji_skin_tone.json: -------------------------------------------------------------------------------- 1 | "👍🏽👍🏽👍🏽" 2 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_just_comma.json: -------------------------------------------------------------------------------- 1 | [,] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_just_minus.json: -------------------------------------------------------------------------------- 1 | [-] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_unclosed.json: -------------------------------------------------------------------------------- 1 | ["" -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_++.json: -------------------------------------------------------------------------------- 1 | [++1234] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_+Inf.json: -------------------------------------------------------------------------------- 1 | [+Inf] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_-01.json: -------------------------------------------------------------------------------- 1 | [-01] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_-1.0..json: -------------------------------------------------------------------------------- 1 | [-1.0.] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_-2..json: -------------------------------------------------------------------------------- 1 | [-2.] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_-NaN.json: -------------------------------------------------------------------------------- 1 | [-NaN] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_.-1.json: -------------------------------------------------------------------------------- 1 | [.-1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_.2e-3.json: -------------------------------------------------------------------------------- 1 | [.2e-3] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_0.1.2.json: -------------------------------------------------------------------------------- 1 | [0.1.2] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_0.3e+.json: -------------------------------------------------------------------------------- 1 | [0.3e+] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_0.3e.json: -------------------------------------------------------------------------------- 1 | [0.3e] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_0.e1.json: -------------------------------------------------------------------------------- 1 | [0.e1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_0e+.json: -------------------------------------------------------------------------------- 1 | [0e+] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_1.0e+.json: -------------------------------------------------------------------------------- 1 | [1.0e+] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_1.0e-.json: -------------------------------------------------------------------------------- 1 | [1.0e-] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_1.0e.json: -------------------------------------------------------------------------------- 1 | [1.0e] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_1eE2.json: -------------------------------------------------------------------------------- 1 | [1eE2] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_2.e+3.json: -------------------------------------------------------------------------------- 1 | [2.e+3] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_2.e-3.json: -------------------------------------------------------------------------------- 1 | [2.e-3] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_2.e3.json: -------------------------------------------------------------------------------- 1 | [2.e3] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_9.e+.json: -------------------------------------------------------------------------------- 1 | [9.e+] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_Inf.json: -------------------------------------------------------------------------------- 1 | [Inf] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_NaN.json: -------------------------------------------------------------------------------- 1 | [NaN] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_emoji.json: -------------------------------------------------------------------------------- 1 | {🇨🇭} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_no-colon.json: -------------------------------------------------------------------------------- 1 | {"a" -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_no_data.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_array_false.json: -------------------------------------------------------------------------------- 1 | [false] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_array_null.json: -------------------------------------------------------------------------------- 1 | [null] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_0e+1.json: -------------------------------------------------------------------------------- 1 | [0e+1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_0e1.json: -------------------------------------------------------------------------------- 1 | [0e1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_space.json: -------------------------------------------------------------------------------- 1 | " " -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_utf8.json: -------------------------------------------------------------------------------- 1 | ["€𝄞"] -------------------------------------------------------------------------------- /tests/fixtures/tree_per_slot_varied/b.txt: -------------------------------------------------------------------------------- 1 | b1 2 | b2 3 | b3 4 | b4 5 | -------------------------------------------------------------------------------- /tests/fixtures/tree_per_slot_varied/c.txt: -------------------------------------------------------------------------------- 1 | c1 2 | c2 3 | c3 4 | c4 5 | -------------------------------------------------------------------------------- /tests/fixtures/explicit/unicode_combining.json: -------------------------------------------------------------------------------- 1 | "e\u0301e\u0301e\u0301" 2 | -------------------------------------------------------------------------------- /tests/fixtures/explicit/unicode_zwj_family.json: -------------------------------------------------------------------------------- 1 | "👨‍👩‍👧‍👦👨‍👩‍👧‍👦" 2 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_double_comma.json: -------------------------------------------------------------------------------- 1 | [1,,2] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_extra_close.json: -------------------------------------------------------------------------------- 1 | ["x"]] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_extra_comma.json: -------------------------------------------------------------------------------- 1 | ["",] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_incomplete.json: -------------------------------------------------------------------------------- 1 | ["x" -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_star_inside.json: -------------------------------------------------------------------------------- 1 | [*] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_incomplete_false.json: -------------------------------------------------------------------------------- 1 | [fals] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_incomplete_null.json: -------------------------------------------------------------------------------- 1 | [nul] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_incomplete_true.json: -------------------------------------------------------------------------------- 1 | [tru] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_0_capital_E+.json: -------------------------------------------------------------------------------- 1 | [0E+] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_0_capital_E.json: -------------------------------------------------------------------------------- 1 | [0E] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_1_000.json: -------------------------------------------------------------------------------- 1 | [1 000.0] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_expression.json: -------------------------------------------------------------------------------- 1 | [1+2] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_hex_1_digit.json: -------------------------------------------------------------------------------- 1 | [0x1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_invalid+-.json: -------------------------------------------------------------------------------- 1 | [0e+-1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_missing_key.json: -------------------------------------------------------------------------------- 1 | {:"b"} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_escape_x.json: -------------------------------------------------------------------------------- 1 | ["\x00"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_end_array.json: -------------------------------------------------------------------------------- 1 | ] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_open_object.json: -------------------------------------------------------------------------------- 1 | { -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_single_star.json: -------------------------------------------------------------------------------- 1 | * -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_array_empty-string.json: -------------------------------------------------------------------------------- 1 | [""] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_after_space.json: -------------------------------------------------------------------------------- 1 | [ 4] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_minus_zero.json: -------------------------------------------------------------------------------- 1 | [-0] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_negative_one.json: -------------------------------------------------------------------------------- 1 | [-1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_negative_zero.json: -------------------------------------------------------------------------------- 1 | [-0] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_simple_int.json: -------------------------------------------------------------------------------- 1 | [123] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_object_empty_key.json: -------------------------------------------------------------------------------- 1 | {"":0} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_object_simple.json: -------------------------------------------------------------------------------- 1 | {"a":[]} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_in_array.json: -------------------------------------------------------------------------------- 1 | ["asd"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_unicode.json: -------------------------------------------------------------------------------- 1 | ["\uA66D"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_unicode_2.json: -------------------------------------------------------------------------------- 1 | ["⍂㈴⍂"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_structure_lonely_int.json: -------------------------------------------------------------------------------- 1 | 42 -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_structure_string_empty.json: -------------------------------------------------------------------------------- 1 | "" -------------------------------------------------------------------------------- /tests/fixtures/parametric/string_long.json: -------------------------------------------------------------------------------- 1 | ["abcdefghijklmnopqrstuvwxyz"] 2 | -------------------------------------------------------------------------------- /tests/fixtures/tree_per_slot_varied/a.txt: -------------------------------------------------------------------------------- 1 | a1 2 | a2 3 | a3 4 | a4 5 | a5 6 | -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- 1 | [pytest] 2 | testpaths = tests_py 3 | python_files = test_*.py 4 | 5 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_comma_after_close.json: -------------------------------------------------------------------------------- 1 | [""], -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_comma_and_number.json: -------------------------------------------------------------------------------- 1 | [,1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_missing_value.json: -------------------------------------------------------------------------------- 1 | [ , ""] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_number_and_comma.json: -------------------------------------------------------------------------------- 1 | [1,] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_multidigit_number_then_00.json: -------------------------------------------------------------------------------- 1 | 123 -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_hex_2_digits.json: -------------------------------------------------------------------------------- 1 | [0x42] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_infinity.json: -------------------------------------------------------------------------------- 1 | [Infinity] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_minus_space_1.json: -------------------------------------------------------------------------------- 1 | [- 1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_with_alpha.json: -------------------------------------------------------------------------------- 1 | [1.2a-3] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_with_leading_zero.json: -------------------------------------------------------------------------------- 1 | [012] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_bad_value.json: -------------------------------------------------------------------------------- 1 | ["x", truth] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_double_colon.json: -------------------------------------------------------------------------------- 1 | {"x"::"b"} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_missing_colon.json: -------------------------------------------------------------------------------- 1 | {"a" b} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_missing_value.json: -------------------------------------------------------------------------------- 1 | {"a": -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_non_string_key.json: -------------------------------------------------------------------------------- 1 | {1:1} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_single_quote.json: -------------------------------------------------------------------------------- 1 | {'a':0} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_unquoted_key.json: -------------------------------------------------------------------------------- 1 | {a: "b"} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_backslash_00.json: -------------------------------------------------------------------------------- 1 | ["\"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_escaped_emoji.json: -------------------------------------------------------------------------------- 1 | ["\🌀"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_incomplete_escape.json: -------------------------------------------------------------------------------- 1 | ["\"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_single_doublequote.json: -------------------------------------------------------------------------------- 1 | " -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_unescaped_tab.json: -------------------------------------------------------------------------------- 1 | [" "] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_UTF8_BOM_no_data.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_angle_bracket_..json: -------------------------------------------------------------------------------- 1 | <.> -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_double_array.json: -------------------------------------------------------------------------------- 1 | [][] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_lone-open-bracket.json: -------------------------------------------------------------------------------- 1 | [ -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_open_array_comma.json: -------------------------------------------------------------------------------- 1 | [, -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_open_object_comma.json: -------------------------------------------------------------------------------- 1 | {, -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_unclosed_array.json: -------------------------------------------------------------------------------- 1 | [1 -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_unicode-identifier.json: -------------------------------------------------------------------------------- 1 | å -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_array_arraysWithSpaces.json: -------------------------------------------------------------------------------- 1 | [[] ] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_array_with_leading_space.json: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_array_with_trailing_space.json: -------------------------------------------------------------------------------- 1 | [2] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_int_with_exp.json: -------------------------------------------------------------------------------- 1 | [20e1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_negative_int.json: -------------------------------------------------------------------------------- 1 | [-123] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_real_capital_e.json: -------------------------------------------------------------------------------- 1 | [1E22] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_real_exponent.json: -------------------------------------------------------------------------------- 1 | [123e45] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_real_neg_exp.json: -------------------------------------------------------------------------------- 1 | [1e-2] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_object_basic.json: -------------------------------------------------------------------------------- 1 | {"asd":"sdf"} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_double_escape_a.json: -------------------------------------------------------------------------------- 1 | ["\\a"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_double_escape_n.json: -------------------------------------------------------------------------------- 1 | ["\\n"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_null_escape.json: -------------------------------------------------------------------------------- 1 | ["\u0000"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_simple_ascii.json: -------------------------------------------------------------------------------- 1 | ["asd "] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_u+2028_line_sep.json: -------------------------------------------------------------------------------- 1 | ["
"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_u+2029_par_sep.json: -------------------------------------------------------------------------------- 1 | ["
"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_structure_lonely_false.json: -------------------------------------------------------------------------------- 1 | false -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_structure_lonely_null.json: -------------------------------------------------------------------------------- 1 | null -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_structure_lonely_string.json: -------------------------------------------------------------------------------- 1 | "asd" -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_structure_lonely_true.json: -------------------------------------------------------------------------------- 1 | true -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_structure_true_in_array.json: -------------------------------------------------------------------------------- 1 | [true] -------------------------------------------------------------------------------- /tests/fixtures/explicit/object_small.json: -------------------------------------------------------------------------------- 1 | {"a": [1, 2, 3], "b": {"c": 1, "d": 2}} 2 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_1_true_without_comma.json: -------------------------------------------------------------------------------- 1 | [1 true] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_double_extra_comma.json: -------------------------------------------------------------------------------- 1 | ["x",,] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_incomplete_invalid_value.json: -------------------------------------------------------------------------------- 1 | [x -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_inner_array_no_comma.json: -------------------------------------------------------------------------------- 1 | [3[4]] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_unclosed_trailing_comma.json: -------------------------------------------------------------------------------- 1 | [1, -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_minus_infinity.json: -------------------------------------------------------------------------------- 1 | [-Infinity] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_real_garbage_after_e.json: -------------------------------------------------------------------------------- 1 | [1ea] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_starting_with_dot.json: -------------------------------------------------------------------------------- 1 | [.123] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_bracket_key.json: -------------------------------------------------------------------------------- 1 | {[: "x"} 2 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_garbage_at_end.json: -------------------------------------------------------------------------------- 1 | {"a":"a" 123} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_missing_semicolon.json: -------------------------------------------------------------------------------- 1 | {"a" "b"} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_trailing_comma.json: -------------------------------------------------------------------------------- 1 | {"id":0,} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_unterminated-value.json: -------------------------------------------------------------------------------- 1 | {"a":"a -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_escaped_ctrl_char_tab.json: -------------------------------------------------------------------------------- 1 | ["\ "] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_invalid_backslash_esc.json: -------------------------------------------------------------------------------- 1 | ["\a"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_start_escape_unclosed.json: -------------------------------------------------------------------------------- 1 | ["\ -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_unescaped_ctrl_char.json: -------------------------------------------------------------------------------- 1 | ["aa"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_unicode_CapitalU.json: -------------------------------------------------------------------------------- 1 | "\UA66D" -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_with_trailing_garbage.json: -------------------------------------------------------------------------------- 1 | ""x -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_U+2060_word_joined.json: -------------------------------------------------------------------------------- 1 | [⁠] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_capitalized_True.json: -------------------------------------------------------------------------------- 1 | [True] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_close_unopened_array.json: -------------------------------------------------------------------------------- 1 | 1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_open_array_apostrophe.json: -------------------------------------------------------------------------------- 1 | [' -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_open_array_open_object.json: -------------------------------------------------------------------------------- 1 | [{ -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_open_array_string.json: -------------------------------------------------------------------------------- 1 | ["a" -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_open_object_open_array.json: -------------------------------------------------------------------------------- 1 | {[ -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_trailing_#.json: -------------------------------------------------------------------------------- 1 | {"a":"b"}#{} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_whitespace_formfeed.json: -------------------------------------------------------------------------------- 1 | [ ] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_array_ending_with_newline.json: -------------------------------------------------------------------------------- 1 | ["a"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_array_with_1_and_newline.json: -------------------------------------------------------------------------------- 1 | [1 2 | ] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_real_pos_exponent.json: -------------------------------------------------------------------------------- 1 | [1e+2] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_simple_real.json: -------------------------------------------------------------------------------- 1 | [123.456789] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_object.json: -------------------------------------------------------------------------------- 1 | {"asd":"sdf", "dfg":"fgh"} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_comments.json: -------------------------------------------------------------------------------- 1 | ["a/*b*/c/*d//e"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_one-byte-utf-8.json: -------------------------------------------------------------------------------- 1 | ["\u002c"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_three-byte-utf-8.json: -------------------------------------------------------------------------------- 1 | ["\u0821"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_two-byte-utf-8.json: -------------------------------------------------------------------------------- 1 | ["\u0123"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_unescaped_char_delete.json: -------------------------------------------------------------------------------- 1 | [""] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_with_del_character.json: -------------------------------------------------------------------------------- 1 | ["aa"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_structure_lonely_negative_real.json: -------------------------------------------------------------------------------- 1 | -0.1 -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_structure_whitespace_array.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/fixtures/mixed_headers/b.yaml: -------------------------------------------------------------------------------- 1 | name: demo 2 | items: 3 | - one 4 | - two 5 | -------------------------------------------------------------------------------- /docs/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/docs/assets/logo.png -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_colon_instead_of_comma.json: -------------------------------------------------------------------------------- 1 | ["": 1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_items_separated_by_semicolon.json: -------------------------------------------------------------------------------- 1 | [1:2] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_number_and_several_commas.json: -------------------------------------------------------------------------------- 1 | [1,,] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_unclosed_with_object_inside.json: -------------------------------------------------------------------------------- 1 | [{} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_U+FF11_fullwidth_digit_one.json: -------------------------------------------------------------------------------- 1 | [1] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_neg_int_starting_with_zero.json: -------------------------------------------------------------------------------- 1 | [-012] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_neg_real_without_int_part.json: -------------------------------------------------------------------------------- 1 | [-.123] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_neg_with_garbage_at_end.json: -------------------------------------------------------------------------------- 1 | [-1x] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_real_without_fractional_part.json: -------------------------------------------------------------------------------- 1 | [1.] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_trailing_comment.json: -------------------------------------------------------------------------------- 1 | {"a":"b"}/**/ -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_with_trailing_garbage.json: -------------------------------------------------------------------------------- 1 | {"a":"b"}# -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_accentuated_char_no_quotes.json: -------------------------------------------------------------------------------- 1 | [é] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_escaped_backslash_bad.json: -------------------------------------------------------------------------------- 1 | ["\\\"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_invalid_unicode_escape.json: -------------------------------------------------------------------------------- 1 | ["\uqqqq"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_no_quotes_with_bad_escape.json: -------------------------------------------------------------------------------- 1 | [\n] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_single_quote.json: -------------------------------------------------------------------------------- 1 | ['single quote'] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_angle_bracket_null.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_array_trailing_garbage.json: -------------------------------------------------------------------------------- 1 | [1]x -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_ascii-unicode-identifier.json: -------------------------------------------------------------------------------- 1 | aå -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_null-byte-outside-string.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_object_unclosed_no_value.json: -------------------------------------------------------------------------------- 1 | {"": -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_open_array_open_string.json: -------------------------------------------------------------------------------- 1 | ["a -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_open_object_close_array.json: -------------------------------------------------------------------------------- 1 | {] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_open_object_open_string.json: -------------------------------------------------------------------------------- 1 | {"a -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_open_open.json: -------------------------------------------------------------------------------- 1 | ["\{["\{["\{["\{ -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_unclosed_object.json: -------------------------------------------------------------------------------- 1 | {"asd":"asd" -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_array_heterogeneous.json: -------------------------------------------------------------------------------- 1 | [null, 1, "1", {}] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_real_capital_e_neg_exp.json: -------------------------------------------------------------------------------- 1 | [1E-2] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_real_capital_e_pos_exp.json: -------------------------------------------------------------------------------- 1 | [1E+2] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_object_duplicated_key.json: -------------------------------------------------------------------------------- 1 | {"a":"b","a":"c"} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_backslash_doublequotes.json: -------------------------------------------------------------------------------- 1 | ["\""] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_escaped_noncharacter.json: -------------------------------------------------------------------------------- 1 | ["\uFFFF"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_nbsp_uescaped.json: -------------------------------------------------------------------------------- 1 | ["new\u00A0line"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json: -------------------------------------------------------------------------------- 1 | ["￿"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_unicode_U+FDD0_nonchar.json: -------------------------------------------------------------------------------- 1 | ["\uFDD0"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_unicode_U+FFFE_nonchar.json: -------------------------------------------------------------------------------- 1 | ["\uFFFE"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_structure_trailing_newline.json: -------------------------------------------------------------------------------- 1 | ["a"] 2 | -------------------------------------------------------------------------------- /.cargo/config.toml: -------------------------------------------------------------------------------- 1 | [build] 2 | rustflags = ["-Dwarnings"] 3 | rustdocflags = ["-Dwarnings"] 4 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_newlines_unclosed.json: -------------------------------------------------------------------------------- 1 | ["a", 2 | 4 3 | ,1, -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_spaces_vertical_tab_formfeed.json: -------------------------------------------------------------------------------- 1 | [" a"\f] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_invalid-negative-real.json: -------------------------------------------------------------------------------- 1 | [-123.123foo] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_comma_instead_of_colon.json: -------------------------------------------------------------------------------- 1 | {"x", null} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_key_with_single_quotes.json: -------------------------------------------------------------------------------- 1 | {key: 'value'} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_several_trailing_commas.json: -------------------------------------------------------------------------------- 1 | {"id":0,,,,,} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_trailing_comment_open.json: -------------------------------------------------------------------------------- 1 | {"a":"b"}/**// -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_two_commas_in_a_row.json: -------------------------------------------------------------------------------- 1 | {"a":"b",,"c":"d"} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_1_surrogate_then_escape.json: -------------------------------------------------------------------------------- 1 | ["\uD800\"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_1_surrogate_then_escape_u.json: -------------------------------------------------------------------------------- 1 | ["\uD800\u"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_incomplete_escaped_character.json: -------------------------------------------------------------------------------- 1 | ["\u00A"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_incomplete_surrogate.json: -------------------------------------------------------------------------------- 1 | ["\uD834\uDd"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_single_string_no_double_quotes.json: -------------------------------------------------------------------------------- 1 | abc -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_unescaped_newline.json: -------------------------------------------------------------------------------- 1 | ["new 2 | line"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_array_with_extra_array_close.json: -------------------------------------------------------------------------------- 1 | [1]] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_array_with_unclosed_string.json: -------------------------------------------------------------------------------- 1 | ["asd] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_number_with_trailing_garbage.json: -------------------------------------------------------------------------------- 1 | 2@ -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_whitespace_U+2060_word_joiner.json: -------------------------------------------------------------------------------- 1 | [⁠] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_array_with_several_null.json: -------------------------------------------------------------------------------- 1 | [1,null,null,null,2] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_real_fraction_exponent.json: -------------------------------------------------------------------------------- 1 | [123.456e78] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_object_with_newlines.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": "b" 3 | } -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_allowed_escapes.json: -------------------------------------------------------------------------------- 1 | ["\"\\\/\b\f\n\r\t"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_escaped_control_character.json: -------------------------------------------------------------------------------- 1 | ["\u0012"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_in_array_with_leading_space.json: -------------------------------------------------------------------------------- 1 | [ "asd"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json: -------------------------------------------------------------------------------- 1 | ["􏿿"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_uEscape.json: -------------------------------------------------------------------------------- 1 | ["\u0061\u30af\u30EA\u30b9"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_uescaped_newline.json: -------------------------------------------------------------------------------- 1 | ["new\u000Aline"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_unicodeEscapedBackslash.json: -------------------------------------------------------------------------------- 1 | ["\u005C"] -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Normalize line endings for cross-platform consistency 2 | *.py text eol=lf 3 | 4 | -------------------------------------------------------------------------------- /docs/assets/tapes/code.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/docs/assets/tapes/code.gif -------------------------------------------------------------------------------- /docs/assets/tapes/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/docs/assets/tapes/demo.gif -------------------------------------------------------------------------------- /docs/assets/tapes/grep.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/docs/assets/tapes/grep.gif -------------------------------------------------------------------------------- /docs/assets/tapes/sort.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/docs/assets/tapes/sort.gif -------------------------------------------------------------------------------- /docs/assets/tapes/tree.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/docs/assets/tapes/tree.gif -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_unclosed_with_new_lines.json: -------------------------------------------------------------------------------- 1 | [1, 2 | 1 3 | ,1 -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_minus_sign_with_trailing_garbage.json: -------------------------------------------------------------------------------- 1 | [-foo] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_with_alpha_char.json: -------------------------------------------------------------------------------- 1 | [1.8011670033376514H-308] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_repeated_null_null.json: -------------------------------------------------------------------------------- 1 | {null:null,null:null} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_trailing_comment_slash_open.json: -------------------------------------------------------------------------------- 1 | {"a":"b"}// -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_with_single_string.json: -------------------------------------------------------------------------------- 1 | { "foo" : "bar", "a" } -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_1_surrogate_then_escape_u1.json: -------------------------------------------------------------------------------- 1 | ["\uD800\u1"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_1_surrogate_then_escape_u1x.json: -------------------------------------------------------------------------------- 1 | ["\uD800\u1x"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_leading_uescaped_thinspace.json: -------------------------------------------------------------------------------- 1 | [\u0020"asd"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_object_followed_by_closing_object.json: -------------------------------------------------------------------------------- 1 | {}} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_object_with_comment.json: -------------------------------------------------------------------------------- 1 | {"a":/*comment*/"b"} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_open_object_string_with_apostrophes.json: -------------------------------------------------------------------------------- 1 | {'a' -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_uescaped_LF_before_string.json: -------------------------------------------------------------------------------- 1 | [\u000A""] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_unclosed_array_partial_null.json: -------------------------------------------------------------------------------- 1 | [ false, nul -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_object_duplicated_key_and_value.json: -------------------------------------------------------------------------------- 1 | {"a":"b","a":"b"} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_object_escaped_null_in_key.json: -------------------------------------------------------------------------------- 1 | {"foo\u0000bar": 42} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_accepted_surrogate_pair.json: -------------------------------------------------------------------------------- 1 | ["\uD801\udc37"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_backslash_and_u_escaped_zero.json: -------------------------------------------------------------------------------- 1 | ["\\u0000"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_last_surrogates_1_and_2.json: -------------------------------------------------------------------------------- 1 | ["\uDBFF\uDFFF"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_reservedCharacterInUTF-8_U+1BFFF.json: -------------------------------------------------------------------------------- 1 | ["𛿿"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_unicode_U+10FFFE_nonchar.json: -------------------------------------------------------------------------------- 1 | ["\uDBFF\uDFFE"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_unicode_U+1FFFE_nonchar.json: -------------------------------------------------------------------------------- 1 | ["\uD83F\uDFFE"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json: -------------------------------------------------------------------------------- 1 | ["\u200B"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json: -------------------------------------------------------------------------------- 1 | ["\u2064"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_unicode_escaped_double_quote.json: -------------------------------------------------------------------------------- 1 | ["\u0022"] -------------------------------------------------------------------------------- /tests/e2e_inputs/nested_object.json: -------------------------------------------------------------------------------- 1 | {"a": {"b": ["x", "y", "z"], "c": 1}, "d": [ {"k": "v"}, {"k": "w"} ]} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_comma_instead_of_closing_brace.json: -------------------------------------------------------------------------------- 1 | {"x": true, -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_object_with_trailing_garbage.json: -------------------------------------------------------------------------------- 1 | {"a": true} "x" -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_unclosed_array_unfinished_false.json: -------------------------------------------------------------------------------- 1 | [ true, fals -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_unclosed_array_unfinished_true.json: -------------------------------------------------------------------------------- 1 | [ false, tru -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_non_string_key_but_huge_number_instead.json: -------------------------------------------------------------------------------- 1 | {9999E9999:1} -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_trailing_comment_slash_open_incomplete.json: -------------------------------------------------------------------------------- 1 | {"a":"b"}/ -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_object_extreme_numbers.json: -------------------------------------------------------------------------------- 1 | { "min": -1.0e+28, "max": 1.0e+28 } -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_1_2_3_bytes_UTF-8_sequences.json: -------------------------------------------------------------------------------- 1 | ["\u0060\u012a\u12AB"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_accepted_surrogate_pairs.json: -------------------------------------------------------------------------------- 1 | ["\ud83d\ude39\ud83d\udc8d"] -------------------------------------------------------------------------------- /tests/fixtures/explicit/string_escaping.json: -------------------------------------------------------------------------------- 1 | "quote \" and backslash \\ and newline \n and tab \t and null \u0000" 2 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_incomplete_surrogate_escape_invalid.json: -------------------------------------------------------------------------------- 1 | ["\uD800\uD800\x"] -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_string_surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json: -------------------------------------------------------------------------------- 1 | ["\uD834\uDd1e"] -------------------------------------------------------------------------------- /docs/tapes/fixtures/sort_demo/src/util.ts: -------------------------------------------------------------------------------- 1 | export function add(a: number, b: number): number { 2 | return a + b; 3 | } 4 | -------------------------------------------------------------------------------- /tests/fixtures/parametric/nested_object.json: -------------------------------------------------------------------------------- 1 | {"a": {"b": ["x", "y", "z"], "c": 1}, "d": [ {"k": "v"}, {"k": "w"} ]} 2 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_complex_nested_json__js__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_mixed_arrays_json__js__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | -------------------------------------------------------------------------------- /.clippy.toml: -------------------------------------------------------------------------------- 1 | cognitive-complexity-threshold = 5 2 | too-many-arguments-threshold = 6 3 | type-complexity-threshold = 200 4 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__js__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__js__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__js__n1000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__js__n250.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__json__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__js__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__js__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__js__n250.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__json__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_complex_nested_json__json__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__js__n10000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__json__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__json__n1000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__json__n10000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__json__n250.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__pseudo__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__pseudo__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__pseudo__n1000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__pseudo__n10000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_array_json__pseudo__n250.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__js__n1000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__js__n10000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__json__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__json__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__json__n1000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__json__n10000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__json__n250.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__pseudo__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__pseudo__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__pseudo__n1000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__pseudo__n250.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_mixed_arrays_json__json__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_nested_object_json__json__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__pseudo__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ … ] 6 | -------------------------------------------------------------------------------- /docs/tapes/fixtures/sort_demo/src/main.py: -------------------------------------------------------------------------------- 1 | def main(): 2 | print("hello") 3 | 4 | 5 | if __name__ == "__main__": 6 | main() 7 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_complex_nested_json__pseudo__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | { … } 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_empty_object_json__pseudo__n10000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | {} 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_mixed_arrays_json__pseudo__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | { … } 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_nested_object_json__pseudo__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | { … } 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__pseudo__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ … ] 6 | -------------------------------------------------------------------------------- /tests/snapshots/line_budgets__json_pseudo_lines3.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/line_budgets.rs 3 | expression: out 4 | --- 5 | { … } 6 | 7 | -------------------------------------------------------------------------------- /tests/snapshots/line_budgets__json_strict_lines2.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/line_budgets.rs 3 | expression: out 4 | --- 5 | {} 6 | 7 | -------------------------------------------------------------------------------- /tests/fixtures/bytes_chars/long.txt: -------------------------------------------------------------------------------- 1 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 2 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__js__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | assertion_line: 45 4 | expression: stdout 5 | --- 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__json__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__js__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | assertion_line: 45 4 | expression: stdout 5 | --- 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_nested_object_json__js__n10.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | assertion_line: 45 4 | expression: stdout 5 | --- 6 | -------------------------------------------------------------------------------- /docs/tapes/fixtures/tree_demo/project/config/app.yaml: -------------------------------------------------------------------------------- 1 | app: 2 | name: headson-demo 3 | version: 1 4 | features: 5 | grep: true 6 | tree: true 7 | -------------------------------------------------------------------------------- /tests/snapshots/line_budgets__text_lines3_default.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/line_budgets.rs 3 | expression: out 4 | --- 5 | L1 6 | L5 7 | … 8 | 9 | -------------------------------------------------------------------------------- /tests/fixtures/code/line_budget_alpha.py: -------------------------------------------------------------------------------- 1 | def alpha(): 2 | print("alpha") 3 | def beta(): 4 | print("beta") 5 | def gamma(): 6 | print("gamma") 7 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__arena_render_empty.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | expression: out 4 | --- 5 | [] 6 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_snapshots__yaml_snapshot_multidoc_stdin.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_snapshots.rs 3 | expression: out 4 | --- 5 | - a: 1 6 | - - z 7 | 8 | -------------------------------------------------------------------------------- /docs/tapes/fixtures/sort_demo/data/alpha.json: -------------------------------------------------------------------------------- 1 | { 2 | "alpha": { 3 | "items": [1, 2, 3, 4, 5], 4 | "note": "this file is intentionally small" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /tests/fixtures/code/line_budget_beta.py: -------------------------------------------------------------------------------- 1 | def delta(): 2 | print("delta") 3 | def epsilon(): 4 | print("epsilon") 5 | def zeta(): 6 | print("zeta") 7 | 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__js__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | "abcdefghijklmnopqrstuvwxyz" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__js__n1000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | "abcdefghijklmnopqrstuvwxyz" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__js__n250.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | "abcdefghijklmnopqrstuvwxyz" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_head__e2e_head_mixed_arrays_json__js__n30.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_head.rs 3 | expression: stdout 4 | --- 5 | { /* 4 more properties */ } 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_tail__e2e_tail_mixed_arrays_json__js__n30.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_tail.rs 3 | expression: stdout 4 | --- 5 | { /* 4 more properties */ } 6 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_input__yaml_stdin_basic.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_input.rs 3 | expression: out 4 | --- 5 | bar: true 6 | foo: 7 | - list1 8 | - 2 9 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__arena_render_empty_yaml.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | expression: out 4 | --- 5 | [] 6 | 7 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__arena_render_single_yaml.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | expression: out 4 | --- 5 | - ab 6 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_number_double_close_to_zero.json: -------------------------------------------------------------------------------- 1 | [-0.000000000000000000000000000000000000000000000000000000000000000000000000000001] 2 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__js__n10000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | "abcdefghijklmnopqrstuvwxyz" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__json__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | "abcdefghijklmnopqrstuvwxyz" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__json__n1000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | "abcdefghijklmnopqrstuvwxyz" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__json__n10000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | "abcdefghijklmnopqrstuvwxyz" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__json__n250.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | "abcdefghijklmnopqrstuvwxyz" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__pseudo__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | "abcdefghijklmnopqrstuvwxyz" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__pseudo__n1000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | "abcdefghijklmnopqrstuvwxyz" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__pseudo__n10000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | "abcdefghijklmnopqrstuvwxyz" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_string_long_json__pseudo__n250.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | "abcdefghijklmnopqrstuvwxyz" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_head__e2e_head_complex_nested_json__js__n30.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_head.rs 3 | expression: stdout 4 | --- 5 | { /* 2 more properties */ } 6 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_tail__e2e_tail_complex_nested_json__js__n30.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_tail.rs 3 | expression: stdout 4 | --- 5 | { /* 2 more properties */ } 6 | -------------------------------------------------------------------------------- /tests/snapshots/text_snapshots__text_stdin_snapshot.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/text_snapshots.rs 3 | assertion_line: 18 4 | expression: out 5 | --- 6 | a 7 | b 8 | c 9 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_snapshots__yaml_snapshot_json_input_quoting_digit_key.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_snapshots.rs 3 | expression: out 4 | --- 5 | "010": "010" 6 | 7 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_snapshots__yaml_snapshot_json_input_reserved_value.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_snapshots.rs 3 | expression: out 4 | --- 5 | reserved: "yes" 6 | 7 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/README.md: -------------------------------------------------------------------------------- 1 | Credits to Nicolas Seriot. (See LICENSE file in this folder) 2 | 3 | Source: https://github.com/nst/JSONTestSuite/tree/master 4 | -------------------------------------------------------------------------------- /tests/snapshots/line_budgets__yaml_lines4.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/line_budgets.rs 3 | expression: out 4 | --- 5 | root: 6 | desc: "line1\nline2\nline3" 7 | items: [] 8 | -------------------------------------------------------------------------------- /tests/snapshots/strings_color_param__color_string_js.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/strings_color_param.rs 3 | expression: "color_string_js" 4 | --- 5 | "hello" 6 | 7 | -------------------------------------------------------------------------------- /tests/snapshots/strings_color_param__color_string_json.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/strings_color_param.rs 3 | expression: "color_string_json" 4 | --- 5 | "hello" 6 | 7 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_snapshots__yaml_snapshot_basic_stdin.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_snapshots.rs 3 | expression: out 4 | --- 5 | a: 1 6 | arr: 7 | - x 8 | - "y" 9 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__arena_render_single.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | expression: out 4 | --- 5 | [ 6 | "ab" 7 | ] 8 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_object_long_strings.json: -------------------------------------------------------------------------------- 1 | {"x":[{"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}], "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"} -------------------------------------------------------------------------------- /tests/snapshots/e2e_head__e2e_head_complex_nested_json__pseudo__n30.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_head.rs 3 | expression: stdout 4 | --- 5 | { 6 | "meta": { … } 7 | … 8 | } 9 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_head__e2e_head_mixed_arrays_json__pseudo__n30.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_head.rs 3 | expression: stdout 4 | --- 5 | { 6 | "deep": [ … ] 7 | … 8 | } 9 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_head__e2e_head_simple_array_json__js__n30.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_head.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1 7 | /* 4 more items */ 8 | ] 9 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_tail__e2e_tail_complex_nested_json__pseudo__n30.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_tail.rs 3 | expression: stdout 4 | --- 5 | { 6 | "meta": { … } 7 | … 8 | } 9 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_tail__e2e_tail_mixed_arrays_json__pseudo__n30.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_tail.rs 3 | expression: stdout 4 | --- 5 | { 6 | "deep": [ … ] 7 | … 8 | } 9 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_tail__e2e_tail_simple_array_json__js__n30.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_tail.rs 3 | expression: stdout 4 | --- 5 | [ 6 | /* 4 more items */, 7 | 5 8 | ] 9 | -------------------------------------------------------------------------------- /tests/snapshots/strings_color_param__color_string_pseudo.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/strings_color_param.rs 3 | expression: "color_string_pseudo" 4 | --- 5 | "hello" 6 | 7 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/y_object_string_unicode.json: -------------------------------------------------------------------------------- 1 | {"title":"\u041f\u043e\u043b\u0442\u043e\u0440\u0430 \u0417\u0435\u043c\u043b\u0435\u043a\u043e\u043f\u0430" } -------------------------------------------------------------------------------- /tests/fixtures/explicit/array_numbers_50.json: -------------------------------------------------------------------------------- 1 | [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49] 2 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__js__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__js__n1000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__js__n10000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__js__n250.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__json__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__json__n1000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__json__n10000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__json__n250.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__pseudo__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__pseudo__n250.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/per_slot_snapshots__counted_headers_tiny_line_cap.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/per_slot_snapshots.rs 3 | expression: normalize(&out) 4 | --- 5 | 6 | 7 | ==> 3 more files <== 8 | -------------------------------------------------------------------------------- /src/utils/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod extensions; 2 | pub(crate) mod graph; 3 | pub(crate) mod json; 4 | pub(crate) mod measure; 5 | pub mod templates; 6 | pub(crate) mod text; 7 | pub(crate) mod tree_arena; 8 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_invalid_utf8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/tests/fixtures/json/JSONTestSuite/test_parsing/n_array_invalid_utf8.json -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__pseudo__n1000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_simple_array_json__pseudo__n10000.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_head__e2e_head_simple_array_json__pseudo__n30.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_head.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | … 8 | 3 9 | … 10 | ] 11 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_array_a_invalid_utf8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/tests/fixtures/json/JSONTestSuite/test_parsing/n_array_a_invalid_utf8.json -------------------------------------------------------------------------------- /.release-plz.toml: -------------------------------------------------------------------------------- 1 | [workspace] 2 | publish = true 3 | dependencies_update = true 4 | 5 | [[package]] 6 | name = "headson" 7 | 8 | [[package]] 9 | name = "headson-python" 10 | publish = false 11 | -------------------------------------------------------------------------------- /docs/tapes/fixtures/sort_demo/data/zeta.json: -------------------------------------------------------------------------------- 1 | { 2 | "zeta": { 3 | "pipeline": { 4 | "compute": { 5 | "steps": ["load", "compute", "save"] 6 | } 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /python/headson/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | # Re-export the compiled extension API directly. 4 | from .headson import summarize # type: ignore 5 | 6 | __all__ = ["summarize"] 7 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_single_eacute.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_single_eacute.json -------------------------------------------------------------------------------- /tests/snapshots/e2e_head__e2e_head_simple_array_json__js__n200.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_head.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_head__e2e_head_simple_array_json__pseudo__n200.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_head.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_tail__e2e_tail_simple_array_json__js__n200.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_tail.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_tail__e2e_tail_simple_array_json__pseudo__n200.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_tail.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e_tail__e2e_tail_simple_array_json__pseudo__n30.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e_tail.rs 3 | expression: stdout 4 | --- 5 | [ 6 | 1, 7 | 2, 8 | 3, 9 | 4, 10 | 5 11 | ] 12 | -------------------------------------------------------------------------------- /tests/snapshots/strings_color_param__color_object_kv_js.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/strings_color_param.rs 3 | expression: "color_object_kv_js" 4 | --- 5 | { 6 | "k": "v" 7 | } 8 | 9 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__array_omitted_pseudo_head.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | expression: out_head 4 | --- 5 | [ 6 | 1 7 | … 8 | ] 9 | 10 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__array_omitted_pseudo_tail.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | expression: out_tail 4 | --- 5 | [ 6 | …, 7 | 1 8 | ] 9 | 10 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_invalid-utf-8-in-int.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/tests/fixtures/json/JSONTestSuite/test_parsing/n_number_invalid-utf-8-in-int.json -------------------------------------------------------------------------------- /tests/snapshots/strings_color_param__color_object_kv_json.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/strings_color_param.rs 3 | expression: "color_object_kv_json" 4 | --- 5 | { 6 | "k": "v" 7 | } 8 | 9 | -------------------------------------------------------------------------------- /.config/nextest.toml: -------------------------------------------------------------------------------- 1 | [profile.default] 2 | # Cap individual test wall time to 5 seconds to catch hangs quickly while 3 | # leaving room for heavier integration/e2e runs on slower machines. 4 | test-timeout = "5s" 5 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__array_omitted_yaml_head.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | assertion_line: 787 4 | expression: out_head 5 | --- 6 | - 1 7 | # 2 more items 8 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__array_omitted_yaml_tail.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | assertion_line: 806 4 | expression: out_tail 5 | --- 6 | # 2 more items 7 | - 1 8 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_incomplete_UTF8_BOM.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_incomplete_UTF8_BOM.json -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_lone-invalid-utf-8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/tests/fixtures/json/JSONTestSuite/test_parsing/n_structure_lone-invalid-utf-8.json -------------------------------------------------------------------------------- /tests/snapshots/strings_color_param__color_object_kv_pseudo.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/strings_color_param.rs 3 | expression: "color_object_kv_pseudo" 4 | --- 5 | { 6 | "k": "v" 7 | } 8 | 9 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__array_omitted_js_head.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | expression: out_head 4 | --- 5 | [ 6 | 1 7 | /* 2 more items */ 8 | ] 9 | 10 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_invalid-utf-8-in-exponent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/tests/fixtures/json/JSONTestSuite/test_parsing/n_number_invalid-utf-8-in-exponent.json -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_invalid-utf-8-in-escape.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/tests/fixtures/json/JSONTestSuite/test_parsing/n_string_invalid-utf-8-in-escape.json -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_string_invalid_utf8_after_escape.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/tests/fixtures/json/JSONTestSuite/test_parsing/n_string_invalid_utf8_after_escape.json -------------------------------------------------------------------------------- /tests/snapshots/line_budgets__json_js_lines4.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/line_budgets.rs 3 | expression: out 4 | --- 5 | { 6 | "a": [ /* 3 more items */ ], 7 | "b": { /* 2 more properties */ } 8 | } 9 | 10 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__array_internal_gaps_yaml.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | assertion_line: 795 4 | expression: out 5 | --- 6 | - 1 7 | - 2 8 | - 3 9 | 10 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__array_omitted_js_tail.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | expression: out_tail 4 | --- 5 | [ 6 | /* 2 more items */, 7 | 1 8 | ] 9 | 10 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_invalid-utf-8-in-bigger-int.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/tests/fixtures/json/JSONTestSuite/test_parsing/n_number_invalid-utf-8-in-bigger-int.json -------------------------------------------------------------------------------- /src/order/build/snapshots/headson__order__build__tests__order_empty_array_order.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/order/build.rs 3 | expression: "lines.join(\"\\n\")" 4 | --- 5 | len=1 6 | Array { node_id: NodeId(0), key_in_object: None } 7 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_number_real_with_invalid_utf8_after_e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/tests/fixtures/json/JSONTestSuite/test_parsing/n_number_real_with_invalid_utf8_after_e.json -------------------------------------------------------------------------------- /tests/snapshots/cpp_text_fallback__cpp_text_fallback_snapshot.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/cpp_text_fallback.rs 3 | expression: out 4 | --- 5 | 1: #include 6 | 3: void greet(const std::string& name) { 7 | 7: int main() { 8 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__inline_open_array_in_object_json.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | expression: out 4 | --- 5 | { 6 | "a": [ 7 | 1, 8 | 2 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/HWV9.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Document-end marker 3 | from: '@perlpunk' 4 | tags: footer 5 | yaml: | 6 | ... 7 | tree: | 8 | +STR 9 | -STR 10 | json: '' 11 | dump: '' 12 | -------------------------------------------------------------------------------- /tests/snapshots/combined_limits__combined_limits_single_file_pseudo_min80.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/combined_limits.rs 3 | expression: out_both 4 | --- 5 | "quote \" and backslash \\ and newline \n and tab \t and null \u0000" 6 | 7 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/9MMA.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Directive by itself with no document 3 | from: '@ingydotnet' 4 | tags: error directive 5 | fail: true 6 | yaml: | 7 | %YAML 1.2 8 | tree: | 9 | +STR 10 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_mixed_arrays_json__pseudo__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | { 6 | "deep": [ … ], 7 | "matrix": [ … ], 8 | "objects": [ … ], 9 | "strings": [ … ] 10 | } 11 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/H7TQ.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Extra words on %YAML directive 3 | from: '@ingydotnet' 4 | tags: directive 5 | fail: true 6 | yaml: | 7 | %YAML 1.2 foo 8 | --- 9 | tree: | 10 | +STR 11 | -------------------------------------------------------------------------------- /src/order/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod build; 2 | pub mod scoring; 3 | pub mod types; 4 | 5 | pub use build::build_order; 6 | pub use types::{ 7 | NodeId, NodeKind, ObjectType, PriorityConfig, PriorityOrder, ROOT_PQ_ID, 8 | RankedNode, 9 | }; 10 | -------------------------------------------------------------------------------- /src/serialization/snapshots/headson__serialization__tests__inline_open_array_in_object_yaml.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: src/serialization/mod.rs 3 | assertion_line: 903 4 | expression: out 5 | --- 6 | a: 7 | - 1 8 | - 2 9 | # 1 more items 10 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/LHL4.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Invalid tag 3 | from: '@perlpunk' 4 | tags: error tag 5 | fail: true 6 | yaml: | 7 | --- 8 | !invalid{}tag scalar 9 | tree: | 10 | +STR 11 | +DOC --- 12 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/U99R.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Invalid comma in tag 3 | from: '@perlpunk' 4 | tags: error tag 5 | fail: true 6 | yaml: | 7 | - !!str, xxx 8 | tree: | 9 | +STR 10 | +DOC 11 | +SEQ 12 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/YJV2.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Dash in flow sequence 3 | from: '@ingydotnet' 4 | tags: flow sequence 5 | fail: true 6 | yaml: | 7 | [-] 8 | tree: | 9 | +STR 10 | +DOC 11 | +SEQ [] 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_mixed_arrays_json__js__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | { 6 | "deep": [ /* 2 more items */ ], 7 | "matrix": [ /* 3 more items */ ] 8 | /* 2 more properties */ 9 | } 10 | -------------------------------------------------------------------------------- /docs/tapes/fixtures/tree_demo/project/data/users.json: -------------------------------------------------------------------------------- 1 | { 2 | "users": [ 3 | { "id": 1, "name": "Ana", "roles": ["admin", "dev"] }, 4 | { "id": 2, "name": "Bo", "roles": ["ops"] } 5 | ], 6 | "meta": { "count": 2, "source": "fixtures" } 7 | } 8 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/B63P.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Directive without document 3 | from: AdaYaml tests 4 | tags: error directive document 5 | fail: true 6 | yaml: | 7 | %YAML 1.2 8 | ... 9 | tree: | 10 | +STR 11 | -------------------------------------------------------------------------------- /tests/snapshots/cli_golden__cli_grep_and_binary_notices.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/cli_golden.rs 3 | assertion_line: 97 4 | expression: snap 5 | --- 6 | STDOUT: 7 | 8 | 9 | STDERR: 10 | Ignored binary file: bin.dat 11 | No grep matches found 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_complex_nested_json__json__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | { 6 | "meta": { 7 | "next": null, 8 | "page": 1, 9 | "pageSize": 20 10 | }, 11 | "users": [] 12 | } 13 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_nested_object_json__js__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | { 6 | "a": { 7 | "b": [ /* 3 more items */ ], 8 | "c": 1 9 | }, 10 | "d": [ /* 2 more items */ ] 11 | } 12 | -------------------------------------------------------------------------------- /tests/snapshots/per_slot_snapshots__tree_per_slot_line_cap.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/per_slot_snapshots.rs 3 | expression: normalize(&out) 4 | --- 5 | . 6 | ├─ tests/fixtures/tree_per_slot/ 7 | │ ├─ a.txt 8 | │ │ … 9 | │ ├─ b.txt 10 | │ │ … 11 | -------------------------------------------------------------------------------- /tests/snapshots/text_snapshots__fileset_text_files_snapshot.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/text_snapshots.rs 3 | assertion_line: 45 4 | expression: out 5 | --- 6 | ==> a.txt <== 7 | one 8 | two 9 | 10 | 11 | ==> b.log <== 12 | alpha 13 | beta 14 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/SF5V.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Duplicate YAML directive 3 | from: '@perlpunk' 4 | tags: directive error 5 | fail: true 6 | yaml: | 7 | %YAML 1.2 8 | %YAML 1.2 9 | --- 10 | tree: | 11 | +STR 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_complex_nested_json__js__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | { 6 | "meta": { 7 | "next": null 8 | /* 3 more properties */ 9 | }, 10 | "users": [ /* 2 more items */ ] 11 | } 12 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_nested_object_json__pseudo__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | { 6 | "a": { 7 | "b": [ … ], 8 | "c": 1 9 | }, 10 | "d": [ 11 | { … }, 12 | { … } 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /tests/snapshots/fileset_tree__tree_cli_snapshot_nested_folder_omission.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/fileset_tree.rs 3 | expression: stdout.as_ref() 4 | --- 5 | . 6 | ├─ keep/root.rs 7 | │ 1: fn keep(){} 8 | ├─ omit/deep/file.rs 9 | │ 1: fn drop(){} 10 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/55WF.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Invalid escape in double quoted string 3 | from: '@perlpunk' 4 | tags: error double 5 | fail: true 6 | yaml: | 7 | --- 8 | "\." 9 | tree: | 10 | +STR 11 | +DOC --- 12 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/AVM7.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Empty Stream 3 | from: https://github.com/ingydotnet/yaml-pegex-pm/blob/master/test/misc.tml 4 | tags: edge 5 | yaml: | 6 | ∎ 7 | tree: | 8 | +STR 9 | -STR 10 | json: '' 11 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/SY6V.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Anchor before sequence entry on same line 3 | from: '@perlpunk' 4 | tags: anchor error sequence 5 | fail: true 6 | yaml: | 7 | &anchor - sequence entry 8 | tree: | 9 | +STR 10 | -------------------------------------------------------------------------------- /tests/snapshots/code_text_fallback_param__code_text_fallback_sample_cpp_stdout.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/code_text_fallback_param.rs 3 | expression: out_default 4 | --- 5 | 1: #include 6 | 3: void greet(const std::string& name) { 7 | 7: int main() { 8 | -------------------------------------------------------------------------------- /tests/snapshots/code_text_fallback_param__code_text_fallback_sample_ts_stdout.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/code_text_fallback_param.rs 3 | expression: out_default 4 | --- 5 | 1: function greet(name: string) { 6 | 2: console.log(`Hello, ${name}`); 7 | 28: main(); 8 | -------------------------------------------------------------------------------- /tests/snapshots/fileset_tree__tree_cli_color_snapshot_with_grep.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/fileset_tree.rs 3 | expression: stdout.as_ref() 4 | --- 5 | . 6 | ├─ main.rs 7 | │ 1: fn main(){} 8 | └─ lib.rs 9 | -------------------------------------------------------------------------------- /tests/fixtures/json/JSONTestSuite/test_parsing/n_object_lone_continuation_byte_in_key_and_trailing_comma.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kantord/headson/HEAD/tests/fixtures/json/JSONTestSuite/test_parsing/n_object_lone_continuation_byte_in_key_and_trailing_comma.json -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_complex_nested_json__pseudo__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | { 6 | "meta": { 7 | "next": null, 8 | "page": 1, 9 | "pageSize": 20 10 | … 11 | }, 12 | "users": [ … ] 13 | } 14 | -------------------------------------------------------------------------------- /tests/snapshots/fileset_tree__tree_cli_snapshot_budgeted_root_omission.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/fileset_tree.rs 3 | expression: stdout.as_ref() 4 | --- 5 | . 6 | ├─ a.txt 7 | │ line 8 | ├─ b.txt 9 | │ line 10 | ├─ c.txt 11 | │ line 12 | └─ … 2 more items 13 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/QT73.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Comment and document-end marker 3 | from: '@perlpunk' 4 | tags: comment footer 5 | yaml: | 6 | # comment 7 | ... 8 | tree: | 9 | +STR 10 | -STR 11 | json: '' 12 | dump: '' 13 | -------------------------------------------------------------------------------- /tests/snapshots/code_text_fallback_param__code_text_fallback_Sample_java_stdout.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/code_text_fallback_param.rs 3 | expression: out_default 4 | --- 5 | 1: public class Sample { 6 | 6: static int compute(int n) { 7 | 15: return total; 8 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_mixed_arrays_json__json__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | { 6 | "deep": [ 7 | {}, 8 | {} 9 | ], 10 | "matrix": [ 11 | [] 12 | ], 13 | "objects": [], 14 | "strings": [] 15 | } 16 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4MUZ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - emit: … 6 | from: … 7 | json: … 8 | name: … 9 | tags: … 10 | tree: … 11 | yaml: … 12 | - {} 13 | - {} 14 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_JEF9_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: … 6 | from: … 7 | json: … 8 | name: … 9 | tags: … 10 | tree: … 11 | yaml: … 12 | - {} 13 | - {} 14 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/2CMS.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Invalid mapping in plain multiline 3 | from: '@perlpunk' 4 | tags: error mapping 5 | fail: true 6 | yaml: | 7 | this 8 | is 9 | invalid: x 10 | tree: | 11 | +STR 12 | +DOC 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9MQT_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: … 6 | emit: … 7 | from: … 8 | json: … 9 | name: … 10 | tags: … 11 | tree: … 12 | yaml: … 13 | - {} 14 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_UKK6_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: … 6 | name: … 7 | tags: … 8 | tree: … 9 | yaml: … 10 | - json: … 11 | tree: … 12 | yaml: … 13 | - {} 14 | -------------------------------------------------------------------------------- /tests/fixtures/yaml/yaml-test-suite/CXX2.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Mapping with anchor on document start line 3 | from: '@perlpunk' 4 | tags: anchor error header mapping 5 | fail: true 6 | yaml: | 7 | --- &anchor a: b 8 | tree: | 9 | +STR 10 | +DOC --- 11 | -------------------------------------------------------------------------------- /tests/snapshots/code_root_sampling__code_auto_sample_colorized_stripped_snapshot.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/code_root_sampling.rs 3 | expression: stripped 4 | --- 5 | 1: def greet(name: str): 6 | 5: def compute(n: int) -> int: 7 | 15: def main(): 8 | 23: if __name__ == "__main__": 9 | -------------------------------------------------------------------------------- /tests/snapshots/code_text_fallback_param__code_text_fallback_Sample_tsx_stdout.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/code_text_fallback_param.rs 3 | expression: out_default 4 | --- 5 | 1: import React from 'react'; 6 | 5: function Item({ i }: { i: number }) { 7 | 6: return
  • i: {i}
  • ; 8 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_2JQS_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: NimYAML test… 6 | name: Block Mappin… 7 | tags: duplicate-ke… 8 | tree: "+STR\n +DOC\n…" 9 | yaml: ": a\n: b\n" 10 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_3ALJ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: NimYAML… 6 | json: "[\n [\n …" 7 | name: Block S… 8 | tags: sequenc… 9 | tree: "+STR\n +…" 10 | yaml: - - s1… 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_3GZX_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "http://…" 6 | json: "{\n \"Fi…" 7 | name: Spec Ex… 8 | tags: mappin… 9 | tree: "+STR\n …" 10 | yaml: First … 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4ABK_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: unquote… 6 | from: "http://…" 7 | name: Flow Ma… 8 | tags: flow ma… 9 | tree: "+STR\n …" 10 | yaml: "{\nunqu…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4FJ6_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n- …" 6 | from: "@perlp…" 7 | name: Nested… 8 | tags: comple… 9 | tree: "+STR\n …" 10 | yaml: "---\n[\n…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4GC6_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "http://w…" 6 | json: "here's… 7 | name: Spec Ex… 8 | tags: spec sc… 9 | tree: "+STR\n +…" 10 | yaml: 'here''… 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4UYU_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: NimYAML… 6 | json: "\"foo: b…" 7 | name: Colon i… 8 | tags: mappin… 9 | tree: "+STR\n …" 10 | yaml: "\"foo: …" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_565N_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "https:/…" 6 | json: "{\n \"ca…" 7 | name: Constru… 8 | tags: tag un… 9 | tree: "+STR\n …" 10 | yaml: canoni… 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_5C5M_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: - one… 6 | from: http… 7 | json: "[\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "- { …" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_5KJE_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: - - o… 6 | from: http… 7 | json: "[\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "- [ …" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_5TYM_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "http://…" 6 | json: "fluore… 7 | name: Spec Ex… 8 | tags: local-t… 9 | tree: "+STR\n +…" 10 | yaml: "%TAG !…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_5WE3_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: expli… 6 | from: http… 7 | json: "{\n …" 8 | name: Spec… 9 | tags: expl… 10 | tree: +STR… 11 | yaml: "? ex…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6BFJ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- &ma…" 6 | from: "@perlpu…" 7 | name: Mappin… 8 | tags: anchor… 9 | tree: "+STR\n …" 10 | yaml: "---\n&m…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6CA3_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - emit: --- … 6 | from: "@ing…" 7 | json: "[]\n" 8 | name: Tab … 9 | tags: inde… 10 | tree: +STR… 11 | yaml: ———… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6CK3_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "http://…" 6 | json: "[\n \"f…" 7 | name: Spec E… 8 | tags: spec t… 9 | tree: "+STR\n …" 10 | yaml: "%TAG !…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6HB6_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: Not i… 6 | from: http… 7 | json: "{\n …" 8 | name: Spec… 9 | tags: comm… 10 | tree: +STR… 11 | yaml: " # …" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6KGN_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: http… 7 | json: "{\n …" 8 | name: Anch… 9 | tags: alia… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6M2F_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "&a a: &…" 6 | from: NimYAML… 7 | name: Aliases… 8 | tags: alias e… 9 | tree: "+STR\n +…" 10 | yaml: "? &a a…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6PBE_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - emit: "---\n? …" 6 | from: "@perlp…" 7 | name: Zero-i… 8 | tags: explic… 9 | tree: "+STR\n …" 10 | yaml: "---\n?\n…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_753E_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- |…" 6 | from: "MYW6,…" 7 | json: "ab"… 8 | name: Bloc… 9 | tags: lite… 10 | tree: +STR… 11 | yaml: --- … 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_7BMT_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: U3XV… 7 | json: "{\n …" 8 | name: Node… 9 | tags: anch… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_7BUB_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: http… 7 | json: "{\n …" 8 | name: Spec… 9 | tags: mapp… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_8XYN_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: http… 7 | json: "[\n …" 8 | name: Anch… 9 | tags: anch… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9FMG_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "https:…" 6 | json: "{\n \"a…" 7 | name: Multi-… 8 | tags: mappin… 9 | tree: "+STR\n …" 10 | yaml: "a:\n b…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9J7A_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "https:…" 6 | json: "{\n \"f…" 7 | name: Simple… 8 | tags: simple… 9 | tree: "+STR\n …" 10 | yaml: "foo:\n …" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9MMW_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: - - YAM… 6 | from: "@perlpu…" 7 | name: Single … 8 | tags: flow ma… 9 | tree: "+STR\n +…" 10 | yaml: "- [ YA…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9SHH_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "http://…" 6 | json: "{\n \"si…" 7 | name: Spec Ex… 8 | tags: spec s… 9 | tree: "+STR\n …" 10 | yaml: single… 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9U5K_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: http… 7 | json: "[\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9YRD_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: 'a b … 6 | from: NimYA… 7 | json: "a b … 8 | name: Mult… 9 | tags: scal… 10 | tree: +STR… 11 | yaml: "a\nb␣…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_AZ63_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: NimYAML… 6 | json: "{\n \"on…" 7 | name: Sequen… 8 | tags: indent… 9 | tree: "+STR\n …" 10 | yaml: "one:\n-…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_AZW3_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: NimYAML… 6 | json: "[\n {\n …" 7 | name: Lookahe… 8 | tags: mapping… 9 | tree: "+STR\n +…" 10 | yaml: - bla"… 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_BD7L_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Invalid … 8 | tags: error ma… 9 | tree: "+STR\n +D…" 10 | yaml: - item1… 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_CFD4_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "- - : e…" 6 | from: "@perlpu…" 7 | name: Empty i… 8 | tags: empty-… 9 | tree: "+STR\n …" 10 | yaml: "- [ : …" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_D9TU_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "https:/…" 6 | json: "{\n \"f…" 7 | name: Single… 8 | tags: simple… 9 | tree: "+STR\n …" 10 | yaml: "foo: b…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_DFF7_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: explici… 6 | from: "http://…" 7 | name: Spec Ex… 8 | tags: explici… 9 | tree: "+STR\n …" 10 | yaml: "{\n? ex…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_F8F9_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: strip… 6 | from: http… 7 | json: "{\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: " # S…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_FH7J_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "- !!str…" 6 | from: NimYAML… 7 | name: Tags on… 8 | tags: tag sca… 9 | tree: "+STR\n +…" 10 | yaml: "- !!st…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_FRK4_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "http://www.…" 6 | name: Spec Exampl… 7 | tags: empty-key … 8 | tree: "+STR\n +DOC…" 9 | yaml: "{\n ? foo …" 10 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_H7J7_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "https://…" 7 | name: Node anc… 8 | tags: anchor e… 9 | tree: "+STR\n +D…" 10 | yaml: "key: &x…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_HMK4_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "name:…" 6 | from: http… 7 | json: "{\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: name… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_J3BT_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: quote… 6 | from: http… 7 | json: "{\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "# Ta…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_J9HZ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: http… 7 | json: "{\n …" 8 | name: Spec… 9 | tags: mapp… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_JKF3_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@ingydotn…" 7 | name: Multiline… 8 | tags: indent 9 | tree: "+STR\n +DO…" 10 | yaml: - - "bar… 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_JR7V_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "- a?…" 6 | from: "@per…" 7 | json: "[\n …" 8 | name: Ques… 9 | tags: flow… 10 | tree: +STR… 11 | yaml: - a… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_JS2J_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "http://…" 6 | json: "{\n \"Fi…" 7 | name: Spec Ex… 8 | tags: spec a… 9 | tree: "+STR\n …" 10 | yaml: First … 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_K3WX_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: int: 7 | 15: def main(): 8 | 23: if __name__ == "__main__": 9 | -------------------------------------------------------------------------------- /tests/snapshots/e2e__e2e_nested_object_json__json__n100.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/e2e.rs 3 | expression: stdout 4 | --- 5 | { 6 | "a": { 7 | "b": [ 8 | "…", 9 | "…" 10 | ], 11 | "c": 1 12 | }, 13 | "d": [ 14 | {}, 15 | {} 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /tests/snapshots/per_slot_snapshots__multibyte_chars_and_bytes_per_slot.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/per_slot_snapshots.rs 3 | expression: normalize(&out) 4 | --- 5 | ==> tests/fixtures/bytes_chars/emoji.json <== 6 | "…" 7 | 8 | ==> tests/fixtures/bytes_chars/long.txt <== 9 | … 10 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_229Q_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: - nam… 6 | from: http… 7 | json: "[\n …" 8 | name: Spec… 9 | tags: sequ… 10 | tree: +STR… 11 | yaml: "-\n …" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_236B_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Invalid … 8 | tags: error ma… 9 | tree: "+STR\n +D…" 10 | yaml: "foo:\n …" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_26DV_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "top1… 6 | from: "@perl…" 7 | json: "{\n …" 8 | name: Whit… 9 | tags: alia… 10 | tree: +STR… 11 | yaml: "top… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_27NA_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: --- t… 6 | from: "http:…" 7 | json: "text… 8 | name: Spec … 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "%YAM…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_2AUY_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "- !!s…" 6 | from: NimY… 7 | json: "[\n …" 8 | name: Tags… 9 | tags: tag … 10 | tree: +STR… 11 | yaml: " - !…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_2CMS_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Invalid … 8 | tags: error ma… 9 | tree: "+STR\n +D…" 10 | yaml: "this\n i…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_2EBW_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "a!\"#…" 6 | from: "@per…" 7 | json: "{\n …" 8 | name: Allo… 9 | tags: map… 10 | tree: +ST… 11 | yaml: "a!\"…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_2LFX_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: ---… 6 | emit: ---… 7 | from: 6LV… 8 | json: "fo… 9 | name: Spe… 10 | tags: spe… 11 | tree: +S… 12 | yaml: "%F…" 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_2SXE_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "&a: k…" 6 | from: Mail… 7 | json: "{\n …" 8 | name: Anch… 9 | tags: alia… 10 | tree: +STR… 11 | yaml: "&a: …" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_2XXW_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- !…" 6 | from: http… 7 | json: "{\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "# Se…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_33X3_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n-…" 6 | from: IRC 7 | json: "[\n 1…" 8 | name: Three… 9 | tags: sequ… 10 | tree: +STR… 11 | yaml: "---\n…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_35KP_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- !…" 6 | from: NimYA… 7 | json: "{\n …" 8 | name: Tags… 9 | tags: expl… 10 | tree: +STR… 11 | yaml: --- … 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_36F6_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: "@per…" 7 | json: "{\n …" 8 | name: Mult… 9 | tags: mapp… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_3HFZ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Invalid … 8 | tags: error fo… 9 | tree: "+STR\n +D…" 10 | yaml: "---\nkey…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_3MYT_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: --- k… 6 | from: https… 7 | json: "\"k:#…" 8 | name: Plai… 9 | tags: scal… 10 | tree: +STR… 11 | yaml: "---\n…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_3R3P_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "&seq…" 6 | from: "@per…" 7 | json: "[\n …" 8 | name: Sing… 9 | tags: anch… 10 | tree: +STR… 11 | yaml: "&se…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_3UYS_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: escap… 6 | from: "@perl…" 7 | json: "{\n …" 8 | name: Esca… 9 | tags: doub… 10 | tree: +STR… 11 | yaml: esca… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4CQQ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: plain… 6 | from: "http:…" 7 | json: "{\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: plai… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4EJS_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "https://…" 7 | name: Invalid … 8 | tags: error ma… 9 | tree: "+STR\n +…" 10 | yaml: "---\na:\n…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4H7K_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Flow seq… 8 | tags: error fl… 9 | tree: "+STR\n +D…" 10 | yaml: "---\n[ a…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4HVU_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Wrong in… 8 | tags: error se… 9 | tree: "+STR\n +D…" 10 | yaml: "key:\n …" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4JVG_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpunk" 7 | name: Scalar va… 8 | tags: anchor er… 9 | tree: "+STR\n +D…" 10 | yaml: "top1: &n…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4Q9F_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- >…" 6 | from: "TS54,…" 7 | json: "ab c… 8 | name: Folde… 9 | tags: fold… 10 | tree: +STR… 11 | yaml: --- … 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4QFQ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - emit: "- |\n…" 6 | from: R4YG… 7 | json: "[\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "- |…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4RWC_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "- 1\n…" 6 | from: "@ing…" 7 | json: "[\n …" 8 | name: Trai… 9 | tags: flow… 10 | tree: +ST… 11 | yaml: " […" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4V8U_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: --- p… 6 | from: "@perl…" 7 | json: "plai… 8 | name: Plai… 9 | tags: scal… 10 | tree: +STR… 11 | yaml: "---\n…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4WA9_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: ---… 6 | emit: - a… 7 | from: "@in…" 8 | json: "[\n…" 9 | name: Li… 10 | tags: in… 11 | tree: +S… 12 | yaml: - … 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_4ZYM_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: pla… 6 | emit: pla… 7 | from: htt… 8 | json: "{\n …" 9 | name: Spe… 10 | tags: sp… 11 | tree: +S… 12 | yaml: pl… 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_52DL_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- !…" 6 | from: 8MK2… 7 | json: "\"a\"\n" 8 | name: Expl… 9 | tags: tag … 10 | tree: +STR… 11 | yaml: "---\n…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_54T7_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "foo: …" 6 | from: http… 7 | json: "{\n …" 8 | name: Flow… 9 | tags: flow… 10 | tree: +STR… 11 | yaml: "{foo…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_55WF_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Invalid … 8 | tags: error d… 9 | tree: "+STR\n +…" 10 | yaml: "---\n\"\\.…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_57H4_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: seque… 6 | from: "http:…" 7 | json: "{\n …" 8 | name: Spec… 9 | tags: sequ… 10 | tree: +STR… 11 | yaml: sequ… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_58MP_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "x: :…" 6 | from: "@ing…" 7 | json: "{\n …" 8 | name: Flow… 9 | tags: edge… 10 | tree: +STR… 11 | yaml: "{x:…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_5BVJ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: liter… 6 | from: "http:…" 7 | json: "{\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: lite… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_5GBF_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: Foldi… 6 | from: "http:…" 7 | json: "{\n …" 8 | name: Spec… 9 | tags: doub… 10 | tree: +STR… 11 | yaml: Fold… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_5LLU_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpunk" 7 | name: Block sca… 8 | tags: error fol… 9 | tree: "+STR\n +DO…" 10 | yaml: block sca… 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_5MUD_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: "@per…" 7 | json: "{\n …" 8 | name: Colo… 9 | tags: doub… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_5NYZ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "key: …" 6 | from: http… 7 | json: "{\n …" 8 | name: Spec… 9 | tags: mapp… 10 | tree: +STR… 11 | yaml: "key:…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_5T43_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: - k… 6 | emit: - "… 7 | from: "@pe…" 8 | json: "[\n…" 9 | name: Co… 10 | tags: fl… 11 | tree: +S… 12 | yaml: - … 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_5TRB_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Invalid … 8 | tags: header … 9 | tree: "+STR\n +…" 10 | yaml: "---\n\"\n-…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_5U3A_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpunk" 7 | name: Sequence … 8 | tags: error seq… 9 | tree: "+STR\n +D…" 10 | yaml: "key: - a…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_62EZ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Invalid … 8 | tags: error fl… 9 | tree: "+STR\n +D…" 10 | yaml: "---\nx: …" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_652Z_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: --… 6 | emit: "?f…" 7 | from: "@i…" 8 | json: "{\n…" 9 | name: Qu… 10 | tags: fl… 11 | tree: +S… 12 | yaml: "{…" 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_65WH_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "https:/…" 6 | json: "[\n \"fo…" 7 | name: Single … 8 | tags: sequen… 9 | tree: "+STR\n …" 10 | yaml: "- foo\n" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6BCT_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: - foo… 6 | from: "http:…" 7 | json: "[\n {…" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: - fo… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6FWR_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "ab… 6 | emit: ---… 7 | from: Nim… 8 | json: "ab… 9 | name: Blo… 10 | tags: lit… 11 | tree: +ST… 12 | yaml: ---… 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6H3V_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "'foo:…" 6 | from: "@per…" 7 | json: "{\n …" 8 | name: Back… 9 | tags: scal… 10 | tree: +STR… 11 | yaml: 'foo… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6JQW_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- |…" 6 | from: "http:…" 7 | json: "\\/… 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "# AS…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6JTT_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Flow seq… 8 | tags: error fl… 9 | tree: "+STR\n +D…" 10 | yaml: "---\n[ […" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6JWB_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "foo: …" 6 | from: NimY… 7 | json: "{\n …" 8 | name: Tags… 9 | tags: mapp… 10 | tree: +STR… 11 | yaml: "foo:…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6LVF_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: --- "… 6 | from: "http:…" 7 | json: "foo"… 8 | name: Spec … 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "%FOO…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6S55_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Invalid … 8 | tags: error ma… 9 | tree: "+STR\n +D…" 10 | yaml: "key:\n -…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6SLA_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "? \"f…" 6 | from: "@per…" 7 | json: "{\n …" 8 | name: Allo… 9 | tags: mapp… 10 | tree: +STR… 11 | yaml: "foo… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6VJK_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: ">\n S…" 6 | from: http… 7 | json: "Sam… 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: ">\n S…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6WLZ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: ---… 6 | emit: ---… 7 | from: 9WX… 8 | json: "ba… 9 | name: Spe… 10 | tags: loc… 11 | tree: +S… 12 | yaml: "# …" 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6WPF_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: " f… 6 | emit: ---… 7 | from: TL8… 8 | json: " f… 9 | name: Spe… 10 | tags: dou… 11 | tree: +ST… 12 | yaml: ---… 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6XDY_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: "@per…" 7 | json: null… 8 | name: Two … 9 | tags: head… 10 | tree: +STR… 11 | yaml: "---\n…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_6ZKB_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - emit: Docum… 6 | from: "http:…" 7 | json: "Docu… 8 | name: Spec … 9 | tags: spec … 10 | tree: +STR… 11 | yaml: Docu… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_735Y_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: - "fl… 6 | from: http… 7 | json: "[\n …" 8 | name: Spec… 9 | tags: comm… 10 | tree: +STR… 11 | yaml: "-\n …" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_74H7_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "!!str…" 6 | from: NimY… 7 | json: "{\n …" 8 | name: Tags… 9 | tags: tag … 10 | tree: +STR… 11 | yaml: "!!st…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_7A4E_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: " 1st… 6 | from: "http:…" 7 | json: " 1st… 8 | name: Spec … 9 | tags: spec … 10 | tree: +STR… 11 | yaml: " 1s… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_7FWL_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "!!str…" 6 | from: http… 7 | json: "{\n …" 8 | name: Spec… 9 | tags: mapp… 10 | tree: +STR… 11 | yaml: "!\n\n …" 6 | from: http… 7 | json: "\nf… 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: ">\n\n …" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_7TMG_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: "@per…" 7 | json: "[\n …" 8 | name: Comm… 9 | tags: comm… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_7W2P_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "a:\nb…" 6 | from: NimY… 7 | json: "{\n …" 8 | name: Bloc… 9 | tags: expl… 10 | tree: +STR… 11 | yaml: "? a…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_7Z25_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: --- s… 6 | from: "@perl…" 7 | json: "scal… 8 | name: Bare… 9 | tags: foot… 10 | tree: +STR… 11 | yaml: "---\n…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_7ZZ5_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: "@per…" 7 | json: "{\n …" 8 | name: Empt… 9 | tags: flow… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_82AN_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: '---w… 6 | from: "@perl…" 7 | json: "---w… 8 | name: Three… 9 | tags: scala… 10 | tree: +STR… 11 | yaml: ---w… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_87E4_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: 'impl… 6 | from: "http:…" 7 | json: "{\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: 'imp… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_8CWC_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: "@per…" 7 | json: "{\n …" 8 | name: Plai… 9 | tags: mapp… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_8KB6_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: "@per…" 7 | json: "[\n …" 8 | name: Mult… 9 | tags: flow… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_8MK2_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: NimYAML t… 6 | json: "\"a\"\n" 7 | name: Explicit … 8 | tags: tag 1.3-e… 9 | tree: "+STR\n +D…" 10 | yaml: "! a\n" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_8QBE_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "key:…" 6 | from: NimY… 7 | json: "{\n …" 8 | name: Bloc… 9 | tags: mapp… 10 | tree: +STR… 11 | yaml: "key:…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_8UDB_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: - "do… 6 | from: http… 7 | json: "[\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "[\n\"d…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_8XDJ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "https://…" 7 | name: Comment … 8 | tags: error co… 9 | tree: "+STR\n +D…" 10 | yaml: "key: wor…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_93JH_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: - key… 6 | from: NimYA… 7 | json: "[\n {…" 8 | name: Bloc… 9 | tags: mapp… 10 | tree: +STR… 11 | yaml: " - k…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_93WF_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- >…" 6 | from: "K527,…" 7 | json: "trim… 8 | name: Spec … 9 | tags: fold… 10 | tree: +STR… 11 | yaml: --- … 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_96L6_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- >…" 6 | from: "http:…" 7 | json: "Mark… 8 | name: Spec … 9 | tags: spec… 10 | tree: +STR… 11 | yaml: --- … 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_96NN_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: foo… 6 | from: "@in…" 7 | json: "{\"f…" 8 | name: Le… 9 | tags: in… 10 | tree: +S… 11 | yaml: fo… 12 | - yaml: fo… 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9BXH_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: "@per…" 7 | json: "[\n …" 8 | name: Mult… 9 | tags: doub… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9C9N_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Wrong in… 8 | tags: error fl… 9 | tree: "+STR\n +D…" 10 | yaml: "---\nflo…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9CWY_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Invalid … 8 | tags: error ma… 9 | tree: "+STR\n +D…" 10 | yaml: "key:\n -…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9DXL_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - emit: Mappi… 6 | from: "6ZKB,…" 7 | json: "{\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: Mapp… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9HCY_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@ingydot…" 7 | name: Need doc… 8 | tags: directiv… 9 | tree: "+STR\n +D…" 10 | yaml: "!foo \"b…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9JBA_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Invalid … 8 | tags: comment … 9 | tree: "+STR\n +D…" 10 | yaml: "---\n[ a…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9KAX_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- &…" 6 | from: "@per…" 7 | json: "sca… 8 | name: Vari… 9 | tags: anch… 10 | tree: +STR… 11 | yaml: "---\n…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9KBC_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "https://g…" 7 | name: Mapping s… 8 | tags: error he… 9 | tree: "+STR\n +D…" 10 | yaml: --- key1… 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9MAG_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Flow seq… 8 | tags: error fl… 9 | tree: "+STR\n +D…" 10 | yaml: "---\n[ ,…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9SA2_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: "@per…" 7 | json: "[\n …" 8 | name: Mult… 9 | tags: doub… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9TFX_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: " 1… 6 | emit: ---… 7 | from: 7A4… 8 | json: " 1… 9 | name: Spe… 10 | tags: dou… 11 | tree: +ST… 12 | yaml: ---… 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_9WXW_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "!foo …" 6 | from: "http:…" 7 | json: "bar… 8 | name: Spec… 9 | tags: loca… 10 | tree: +STR… 11 | yaml: "# Pr…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_A2M4_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "a:\n-…" 6 | from: http… 7 | json: "{\n …" 8 | name: Spec… 9 | tags: expl… 10 | tree: +STR… 11 | yaml: "? a…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_A6F9_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: strip… 6 | from: "http:…" 7 | json: "{\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: stri… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_A984_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "a: b …" 6 | from: NimY… 7 | json: "{\n …" 8 | name: Mult… 9 | tags: scal… 10 | tree: +STR… 11 | yaml: "a: b…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_AB8U_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: - sin… 6 | from: "@perl…" 7 | json: "[\n …" 8 | name: Sequ… 9 | tags: scal… 10 | tree: +STR… 11 | yaml: - si… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_B3HG_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: ">\n …" 6 | emit: ---… 7 | from: G99… 8 | json: "fo… 9 | name: Spe… 10 | tags: sp… 11 | tree: +S… 12 | yaml: --… 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_B63P_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: AdaYaml te… 7 | name: Directive … 8 | tags: error dire… 9 | tree: "+STR\n" 10 | yaml: "%YAML 1.2…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_BEC7_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: --- "… 6 | from: "http:…" 7 | json: "foo"… 8 | name: Spec … 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "%YAM…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_BF9H_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Trailing… 8 | tags: comment … 9 | tree: "+STR\n +D…" 10 | yaml: "---\npla…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_BS4K_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "https://…" 7 | name: Comment … 8 | tags: error sc… 9 | tree: "+STR\n +D…" 10 | yaml: "word1 #…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_BU8L_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "key: …" 6 | from: http… 7 | json: "{\n …" 8 | name: Node… 9 | tags: anch… 10 | tree: +STR… 11 | yaml: "key:…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_C2DT_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "adja… 6 | from: http… 7 | json: "{\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "{\n\"a…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_C2SP_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpunk" 7 | name: Flow Mapp… 8 | tags: error fl… 9 | tree: "+STR\n +D…" 10 | yaml: "[23\n]: 4…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_C4HZ_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- !…" 6 | from: http… 7 | json: "[\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "%TAG…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_CC74_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- !…" 6 | from: "http:…" 7 | json: "bar… 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "%TAG…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_CML9_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "ihttps:/…" 7 | name: Missing … 8 | tags: error fl… 9 | tree: "+STR\n +D…" 10 | yaml: "key: [ w…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_CN3R_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "&flo…" 6 | from: "@per…" 7 | json: "[\n …" 8 | name: Vari… 9 | tags: anch… 10 | tree: +STR… 11 | yaml: "&fl…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_CPZ3_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: "@per…" 7 | json: "{\n …" 8 | name: Doub… 9 | tags: doub… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_CQ3W_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Double q… 8 | tags: error do… 9 | tree: "+STR\n +D…" 10 | yaml: "---\nkey…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_CT4Q_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: - foo… 6 | from: http… 7 | json: "[\n …" 8 | name: Spec… 9 | tags: expl… 10 | tree: +STR… 11 | yaml: "[\n? …" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_CTN5_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Flow seq… 8 | tags: error fl… 9 | tree: "+STR\n +D…" 10 | yaml: "---\n[ a…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_CUP7_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: ancho… 6 | from: "http:…" 7 | json: "{\n …" 8 | name: Spec… 9 | tags: loca… 10 | tree: +STR… 11 | yaml: anch… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_CVW2_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Invalid … 8 | tags: comment … 9 | tree: "+STR\n +D…" 10 | yaml: "---\n[ a…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_CXX2_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpunk" 7 | name: Mapping w… 8 | tags: anchor er… 9 | tree: "+STR\n +D…" 10 | yaml: "--- &anc…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_D49Q_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Multilin… 8 | tags: error si… 9 | tree: "+STR\n +D…" 10 | yaml: "'a\\nb':…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_D83L_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "- |-…" 6 | from: "@per…" 7 | json: "[\n …" 8 | name: Bloc… 9 | tags: inde… 10 | tree: +STR… 11 | yaml: "- |…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_D88J_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "a:\n-…" 6 | from: NimY… 7 | json: "{\n …" 8 | name: Flow… 9 | tags: flow… 10 | tree: +STR… 11 | yaml: "a: […" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_DBG4_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "- ::v…" 6 | from: http… 7 | json: "[\n …" 8 | name: Spec… 9 | tags: spec… 10 | tree: +STR… 11 | yaml: "# Ou…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_DC7X_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "a: b…" 6 | from: "@per…" 7 | json: "{\n …" 8 | name: Vari… 9 | tags: comm… 10 | tree: +STR… 11 | yaml: "a: …" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_DHP8_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: - foo… 6 | from: https… 7 | json: "[\n …" 8 | name: Flow… 9 | tags: flow… 10 | tree: +STR… 11 | yaml: "[foo…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_DK3J_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- >…" 6 | from: "@perl…" 7 | json: "line… 8 | name: Zero … 9 | tags: comm… 10 | tree: +STR… 11 | yaml: --- … 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_DK4H_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Implicit… 8 | tags: error fl… 9 | tree: "+STR\n +D…" 10 | yaml: "---\n[ k…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_DMG6_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Wrong in… 8 | tags: error ma… 9 | tree: "+STR\n +D…" 10 | yaml: "key:\n …" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_DWX9_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "\n… 6 | emit: "|\n…" 7 | from: ht… 8 | json: "\… 9 | name: Sp… 10 | tags: sp… 11 | tree: +S… 12 | yaml: "|\n…" 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_E76Z_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "&a a:…" 6 | from: NimY… 7 | json: "{\n …" 8 | name: Alia… 9 | tags: mapp… 10 | tree: +STR… 11 | yaml: "&a a…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_EB22_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Missing … 8 | tags: error di… 9 | tree: "+STR\n +D…" 10 | yaml: "---\nsca…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_EHF6_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "!!map…" 6 | from: NimY… 7 | json: "{\n …" 8 | name: Tags… 9 | tags: tag … 10 | tree: +STR… 11 | yaml: "!!ma…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_EW3V_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - fail: true 6 | from: "@perlpun…" 7 | name: Wrong in… 8 | tags: error ma… 9 | tree: "+STR\n +D…" 10 | yaml: "k1: v1\n…" 11 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_EX5H_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: 'a … 6 | emit: ---… 7 | from: 9YR… 8 | json: "a … 9 | name: Mul… 10 | tags: sca… 11 | tree: +ST… 12 | yaml: ---… 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_EXG3_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: '--… 6 | emit: ---… 7 | from: 82A… 8 | json: "--… 9 | name: Thr… 10 | tags: sca… 11 | tree: +ST… 12 | yaml: ---… 13 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_F2C7_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "- &a …" 6 | from: NimY… 7 | json: "[\n …" 8 | name: Anch… 9 | tags: anch… 10 | tree: +STR… 11 | yaml: " - &…" 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_F3CP_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "---\n…" 6 | from: "@per…" 7 | json: "{\n …" 8 | name: Nest… 9 | tags: flow… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_F6MC_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - emit: "---\n…" 6 | from: "@per…" 7 | json: "{\n …" 8 | name: More… 9 | tags: fold… 10 | tree: +STR… 11 | yaml: ---… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_FBC9_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "safe:…" 6 | from: "@per…" 7 | json: "{\n …" 8 | name: Allo… 9 | tags: scal… 10 | tree: +STR… 11 | yaml: safe… 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_FP8R_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - dump: "--- >…" 6 | from: "@perl…" 7 | json: "line… 8 | name: Zero … 9 | tags: fold… 10 | tree: +STR… 11 | yaml: --- … 12 | -------------------------------------------------------------------------------- /tests/snapshots/yaml_suite_snapshots__yaml_suite_FQ7F_tight.snap: -------------------------------------------------------------------------------- 1 | --- 2 | source: tests/yaml_suite_snapshots.rs 3 | expression: tight 4 | --- 5 | - from: "http:…" 6 | json: "[\n \"…" 7 | name: Spec… 8 | tags: spec… 9 | toke: SEQ-… 10 | tree: +STR… 11 | yaml: - Ma… 12 | --------------------------------------------------------------------------------