From 73131469577bdfc7f66ea0ec6f3ebf497e5707f2 Mon Sep 17 00:00:00 2001 From: Marco Roth Date: Wed, 5 Nov 2025 22:26:01 +0100 Subject: [PATCH] Ruby: Add metadata and input to Ruby test snapshots --- test/snapshot_utils.rb | 58 +- ...begin_8c71cb17a972281fb729047b56de5718.txt | 5 + ...ement_310fa78692cbba763c6e961782acf077.txt | 7 + ...ement_90dff6e715c904a974e86da2330e3795.txt | 9 + ...escue_0abd830734a05969547e9b7f744deccd.txt | 9 + ...nsure_652af15ee9468a11e54d5661deb00e99.txt | 9 + ..._else_85973b5966518a564209caa19c09f1e2.txt | 9 + ..._else_5ff2a3e329235a33a89faff9c8647173.txt | 11 + ...nsure_97df51331597aef274a1e1a6d1fa05ab.txt | 11 + ...scues_b391d083604ab993f87d7b5f7da784de.txt | 13 + ..._else_7e05a59142cd6be0bdc4a05fbe46ca11.txt | 13 + ...ments_df42b2e75ecfbebde2efc7179c9a6a88.txt | 11 + ...block_6e95c5888a720e157b1e6ec923700b92.txt | 5 + ...block_bb47a5f1953b6af8f63923f01e574d97.txt | 7 + ...rlies_1f0aa977e8f63e43e55f5c51eeb809c6.txt | 7 + ...ement_39a5ad73c7d101fb93261a1168948d5b.txt | 9 + ...block_12aad82c1dcc0c44ce4506dbdac4fbd5.txt | 7 + ...block_203756003c6f59594914718691890834.txt | 8 + ...block_1533a1664dd8eebdaa2ebe88f35f1316.txt | 7 + ...block_8163697cb75c2f0c085bbbbc587fe892.txt | 7 + ...block_46c8130e027d324f1bc60a66ac2fd9d9.txt | 7 + ...block_b6292ce38564be66a47b39c7cd7c0154.txt | 7 + ...locks_5c1db84edbee554e4c974962dd664115.txt | 11 + ...ments_6e476a363d4ba2c11b5a7880f29eb97e.txt | 7 + ...ments_ce77a6b79077c840b8e3757d685241db.txt | 17 + ...ments_fd95ec37953c2bfabb5e6c134048e826.txt | 7 + ...ments_03b142f7bfa9e9b1adfd3d1ce93f664c.txt | 7 + ...tures_6ef4d5a78134131b297c942bf88a2f27.txt | 9 + ..._body_e7620bceca76d49a706d7ed00e44c573.txt | 7 + ...ssion_aab87ed84223dc1a927240b2859b3c05.txt | 5 + ...ement_894c684a7c2d0c6e8fe725ed9e413c27.txt | 10 + ...le_in_a2c476da06ea1cf6477de09d267c225d.txt | 10 + ..._else_627b23a581abbe9abf0dfe9014d759d7.txt | 10 + ..._else_db516a41f10230a12864d988e29f289e.txt | 12 + ...ement_61e488dd472b63b98202b2d0e83c9610.txt | 14 + ...st_in_48daaea0cd005bda78c99588a3d1fea2.txt | 9 + ...lause_a5d7393ef0ab780cd777fd4d09413ac8.txt | 10 + ...lause_8cdfe954fcb68cf29f71d5c05893547c.txt | 13 + ...lause_51fcf7566215a5284ae1ee34c920837e.txt | 10 + ...ement_29ef35b6c9d10898aadb09e127bb39ca.txt | 8 + ..._when_9e60754ef4d0f4e9601d4c74134c594d.txt | 10 + ..._else_9707b40dd4e4f86f58c2dcd952525f80.txt | 10 + ..._else_6ecf2eb1af1609c6f998834e6454ce75.txt | 12 + ...ement_8c0bd39fa334273e82d5abc8a735d433.txt | 14 + ..._when_f236195655edf63829effb2806e34ce0.txt | 9 + ..._when_adb20c2773fe1206d2b47123f8001e22.txt | 10 + ..._when_05f7d387314a95620a58ddc7f7d31b7b.txt | 13 + ..._when_6e70c1bf60788969969296d35c409a47.txt | 12 + ...auses_3f35d3ebf6ea6eaf8e7b9bc7f8393a0f.txt | 14 + ..._when_ccc0bd511203c41d9274ccc360e736c2.txt | 10 + ...yield_dc59b65969b8ef95076abc05c3907392.txt | 8 + ...b_tag_94dbe0d71e8d4a3dbd06d39ffcad350c.txt | 4 + ...t_tag_1ded89a552e264d13fefa7cc822a35c0.txt | 4 + ..._loop_7ec5a7ce89b03a36c5579d1a65c14274.txt | 7 + ...ldren_cad2b2f8aa5d54b817d3c82e82818659.txt | 7 + ...ement_dc5c7df187a9c834fe5bb14c4805f146.txt | 9 + ...loops_491936055618c1eff4f83651ea92e8e9.txt | 9 + ...ement_6d66066a7761ec6dd8a7cc99cdc3489c.txt | 6 + ...ement_5af49f43e6d63267cffc095e54e5ffcd.txt | 7 + ...ement_189c9341230fd91e47ed767621771ae6.txt | 8 + ...ement_dda9e4f2ba454ab6d841390c684e222f.txt | 9 + ...ldren_2f01997aa5b65191b261fb73a3268eb2.txt | 11 + ...ement_45a48a89838b00831a86d6bc5b8a29f6.txt | 13 + ...ments_d2803320721afe4e5e45cc05ece9915e.txt | 11 + ...value_cc409a1f9d234299bd306bda568b32b4.txt | 9 + ...value_8dd410c9c918399254e71570caeb17dc.txt | 5 + ...fNode_84c50d0087a29c69bf5125ce6ec79f86.txt | 8 + ...ifier_6a92e7d29b0b8ff99771a96e90f4ac10.txt | 8 + ...ifier_41f095a3d010c4b7e9a38aa708b9054d.txt | 8 + ...t_tag_487f1093637a362df78bafb89af97d09.txt | 5 + ...calls_c9fd4eebccb37e967b174ccf1bde7bf2.txt | 5 + ..._with_3e5154d12d6259cc2ac2da74fc48e803.txt | 7 + ...ators_b02fe2f695043e3ef415f674581f8187.txt | 5 + ...value_d0b1eb0c3aae3bb30cf7891afdac44b8.txt | 5 + ...B_tag_7dd1d18fe401ed6c61c478be9ee5140f.txt | 5 + ...locks_a8c8a50604f8821739b2814b58b652f2.txt | 7 + ...meter_e554d08ac7e5da90cd046d79030c2a44.txt | 8 + ...ibute_910f82cb9ee5855d1c51c08667ac90d5.txt | 5 + ...ibute_6f00128b70c7d3176646995151ecfcaa.txt | 9 + ...butes_0db72f423bc1543d78016121e43409d3.txt | 10 + ...t_tag_b4d740369619f1d7bde41172ac6933e6.txt | 5 + ...t_tag_982863841843053cc3728f62e00fa523.txt | 5 + ...ement_b9069f5ae184133162ab0372cfb63c39.txt | 7 + ...ement_da5f138eef1f987f71ce62c984ec4b98.txt | 9 + ...ldren_3e9be163722a3cc21d0ee1c07ebbbfd4.txt | 8 + ...ement_68d73e451f7629a849c27b9d53bf6a77.txt | 10 + ..._else_70949ac6a2833b2b972508ab1ca3f701.txt | 9 + ...ments_f80d305e3bf8d4792b9110c87196318d.txt | 11 + ...sNode_647968bffc9de35b805b872472b322b7.txt | 8 + ...ifier_650bfc3134fa92038c335f96f9047860.txt | 8 + ...ifier_5ae9786a5b6893828c737287cffd216f.txt | 8 + ...auses_80edd1ae63fb2cd18f33418d1ef308c1.txt | 10 + ...nless_4ca85acaceb3fb39b75797c6a07e7437.txt | 12 + ...ement_cebc8340ea1e761f6ce3885d88328dc1.txt | 7 + ...ement_1f3ffcb5fe8fc6596865e33d2ab7252e.txt | 9 + ...ldren_329404c0b9dc64b1825b2b64f49640f7.txt | 8 + ...ement_b1ef79555d9533d568edd30004f8f031.txt | 10 + ...ments_a09465aa6b8033b408b97fb325d7ab66.txt | 11 + ...break_a05643dc6a16774c25549930740f8c33.txt | 9 + ..._next_360523760a88c79cd2e2a120fe723de7.txt | 9 + ...ement_80ec9198a269a436b3bc6b3751352e04.txt | 7 + ...ement_0f8b0693370dfebe34b6705db39fd7ea.txt | 9 + ...ldren_655e4c05f774ea93289049d3910a144f.txt | 8 + ...ement_fc5e9e2adcc5aff28ce2d7b0fb074464.txt | 10 + ...while_adcbb3ba9e1af65fc56a9e4fd9ed0570.txt | 12 + ...break_7fe1a7737e0d01a3e8f78341ce5a31ea.txt | 9 + ..._next_c60dcf0135ff764cb78cf5ebab562962.txt | 9 + ..._redo_48925bae257116b8279a76ad623f9657.txt | 9 + ...ments_1b9c93b2610e46293a5d14116c6b2f96.txt | 11 + ...yield_811e738151285db6da8e3a493b8d6e2b.txt | 5 + ...ymbol_0f3dddc66e3930ac6552f5a273092594.txt | 5 + ...iline_ff404c4e708f59f532b4042441e458ad.txt | 4 + ..._tags_95bcfa3f3e28634bf923f18df0cd38a1.txt | 4 + ...after_0ee0ba8a9a25359175b884cf66f37b2c.txt | 4 + ...iline_6bf3affa07b559b73f6428e0dbd270d2.txt | 4 + ..._tags_8a842d797202d0b31c9832cd43a22686.txt | 4 + ...after_c5e6a4e1e9e691af8dcc74ae6c9564c9.txt | 4 + ...g_tag_72379778fa34572e48b949a780f761b1.txt | 4 + ...g_tag_e1b62f3b00e8efb6cac1e5842461de10.txt | 4 + ...fault_1ae6b8eb8b1931a65192bc14b7593e1c.txt | 4 + ...abled_71a0c34d23cde4f85d84b577b3ac6e86.txt | 4 + ...tions_831362fdf630e5facad634abab817ddd.txt | 4 + ..._span_9431501e9722fe8b38c66468fd77c1f5.txt | 4 + ...spans_78e7fde7b24d6ebbef7b0cc3e02dfeeb.txt | 4 + ...spans_9827f669a2c87b0da29ee3e73f2485a8.txt | 4 + ...spans_fa19152dbae94261cb892c6fe543ee74.txt | 4 + ...spans_841ac66ea0f03edd85fe096706e27292.txt | 4 + ...aries_48fc68664d9cabb3813ea9b86d3f8bbd.txt | 4 + ...aries_15153b8ec3486c918ba9fcb33386aeee.txt | 4 + ...child_683f80e816cdd50d5e065d1e91bcce53.txt | 4 + ...rtial_00b34061b9686a4c930bd9ab0bd4665d.txt | 4 + ...aries_a536d3d2225f6f8d1163956571c1623b.txt | 4 + ...arkup_b88df3287cc07c730b007a0e6a3aace2.txt | 4 + ...arkup_07372a921f413dd0d25e4fc4d599e417.txt | 4 + ...spans_c71ab7a64204c499e9b116ffc3fbf03d.txt | 4 + ...aries_a8600827a6adf41bc60a28a65a7ebe50.txt | 4 + ...butes_a900dc734c9ad44f41ee0df5f88e0e68.txt | 4 + ...calls_9ff80d616cac6cd6536d9d1c69828d42.txt | 4 + ...abled_ed8d270f96c299d791e00fdbec8726b1.txt | 4 + ...abled_d5b28d0c6e5cc66787fa0f0134fe2642.txt | 4 + ...spans_00962cc49ea43b8d9e11e5b050b24a56.txt | 4 + ...tures_8183ba9ca86a867463e5eef28dede268.txt | 4 + ..._type_6441400221f6c4babe86ffc5da0cd758.txt | 4 + ..._type_1d1f4277e9176d7fdfd12943bfdca2fe.txt | 4 + ..._type_085c2022e3fc5db7ee51f4bdb45e58cc.txt | 4 + ..._type_25a2a32341c4efbd5fc67fcaccc65e04.txt | 4 + ..._type_d94d55997ab20001501c4d8811a7bb88.txt | 4 + ..._type_93a0348e20c77450c6d171153f72e728.txt | 4 + ..._type_0c837ffe84723a464e884d64d0e062dd.txt | 4 + ...ments_89b5f8286cf91457e3403e9ac303a110.txt | 4 + ...t_tag_a96009c6e583d1020beeee97e1ce62a9.txt | 4 + ...paces_be6b19dff594a892a386128f09ffe067.txt | 4 + ...space_bac3b0b435460da6f79e9f55aa0330e8.txt | 4 + ...w_div_949cda6115e11aa1c64a4ba7f14af8d7.txt | 4 + ...w_div_a5de27451c9360545052120fb160f115.txt | 4 + ...spans_8089875648934cfa3372da1612535899.txt | 4 + ...spans_749dc54ef9bc43f01a7308eb5aceb38e.txt | 4 + ...spans_310e2cf33eed6523c1327b9489be9c7c.txt | 4 + ...spans_0e904ebb5414efb4cb37c5370cb965a2.txt | 4 + ...spans_29f280295d96a879bf9775e4ca2509b8.txt | 4 + ...spans_f7e26660aada5f63b9e67e4082fa3efe.txt | 4 + ...calls_21cbfad3d0a53e094cf337404372e3cc.txt | 4 + ...tests_8bcb5712e0fc1e7b6a6b8639a98f4e14.txt | 4 + ...heses_f1ec47d1e1a09d1114d928c64d54de58.txt | 4 + ...aping_7296abe3ce9cad7a56f653b0669c8e0a.txt | 4 + ...heses_f5a50306423c1234d1f86bef4244b302.txt | 4 + ...ction_767532fe886f09850d3e2117de637a56.txt | 4 + ...ngine_7d6fcd9b42b7c23b832eae52e36033ef.txt | 4 + ...ngine_a7a38b365e168de54928cd4b780619ce.txt | 4 + ...butes_1a41c1fd03ace896cc730634012d9df9.txt | 4 + ...aping_449cb47f122ffe05c8a3938b86db01da.txt | 4 + ...aping_a367cd981eadfdc5c6a824c1bdf2694f.txt | 4 + ...token_42d9dc7e0c0dd5ae36a7ddde7f11ef75.txt | 4 + ...token_e81d630999b5fe77477e60ce788a1e3d.txt | 4 + ...ectly_92d1893d3882087a626b1b7683e91762.txt | 4 + ...ectly_903b2af211dfab8347850d71f6e431e8.txt | 4 + ..._tags_9ae679bbe8b534b33f7f0482cab09601.txt | 4 + ...sions_4746f6e488bfcd3ec68007d129631394.txt | 4 + ..._text_c1db0d9f3d8889c22cba5f33cca0a81b.txt | 4 + ...t_tag_271458511492ec7e18baf77d0b7a04c3.txt | 4 + ...ments_9c479c9d1b4668c4a5e3ecf9dfdc7d04.txt | 4 + ...ption_a7a38b365e168de54928cd4b780619ce.txt | 4 + ...ption_f439b215d233f255a2d983be50a566a6.txt | 4 + ...aping_031ede7b0d3f38a431bb4e2009e597d2.txt | 4 + ...aping_7d6fcd9b42b7c23b832eae52e36033ef.txt | 4 + ...ufvar_4b12581137e52226597b0aa84fec1148.txt | 4 + ...ption_c7cfe845c307b290283374cda0e6b3bd.txt | 4 + ...ption_848883dc35cf359944935b46efa0d2a1.txt | 4 + ...ption_ae490373e053cdc4f8e3effa5267d81e.txt | 4 + ...amble_3b55a12762518f8786870b322ca30296.txt | 4 + ...ption_5087762b1aa5a6cb20238d3e8292b14f.txt | 4 + ...efunc_b132833b75887924426e4f08e89a7a3b.txt | 4 + ...ption_7c6e88add003e4e2d3e5321121035b4d.txt | 4 + ...ption_d91d14c6c78ca542efb889aef824b39f.txt | 4 + ...plate_8033045d7c8ec7030c37a69705c95b59.txt | 4 + ...ectly_ec8e16b071f1512af4c11c6f5e83a83e.txt | 4 + ...tions_9b2c1232f3a08d85651530a3a053bd1d.txt | 4 + ...tions_80bc91b8f61b130833a0db535587906f.txt | 4 + ...ation_8787e8652af182a14b119c02e42d41ef.txt | 4 + ...aping_97a4cf60e21a27282801c928e34cc7ad.txt | 4 + ...aping_dab6b2186b82b0e6da5e7aba13328292.txt | 4 + ...reeze_2c027491a18992cfc58f26e5e11d132e.txt | 4 + ..._flow_e92996083eebcc06dbfdbe99b01405d4.txt | 4 + ...loops_ce09605dc8d98fa00b772641bcb94756.txt | 4 + ...butes_ae606d306ed113ca8c81bac949c95f0b.txt | 4 + ...butes_d9215319e7a45e85562051ee88efb393.txt | 4 + ...ufvar_648bc9c3988d6e3e11794740df367ac6.txt | 4 + ...ments_3979e9f719fb6a669a5f8954def7c5cb.txt | 4 + ...ments_710fe3f51d746ce1e228e58597aea388.txt | 4 + ...ctype_92f22a69d9a42244fd6bcb2269a2da78.txt | 4 + ...tures_80dc820543c2a2f82784e771830a3ce2.txt | 4 + ...ement_7a2d40e72c76ae8704ea920276c8941e.txt | 4 + ...ation_1437d0425640509570342c24b30de571.txt | 4 + ...fault_82a7a92705ab6d35e9b98dcf832df658.txt | 4 + ..._true_bbb2f1b4762867f152a22fb91e012a4c.txt | 4 + ...rfunc_cf03e906f47d2afbb15fa203feeeb459.txt | 4 + ...rfunc_d7d14e66fe9908f96175d0fc31e0dac1.txt | 4 + ...rfunc_8f14421c2d93dcbfc8c32ebcd79e356c.txt | 4 + ...rfunc_b5195ed0791ce8b7fb7e9957385d0888.txt | 4 + ...rfunc_60c2561eccf31fcc7be74358531d361a.txt | 4 + ...rfunc_d36d73b6689a9ee6b1dd7429bacb5577.txt | 4 + ...fault_4fb2161faf855683340cde061df50b63.txt | 4 + ..._true_44fdc28505aff5a94a37c9368fc76e9d.txt | 4 + ...efunc_40f8668374512910499884ea2bd53300.txt | 4 + ...efunc_9e92c0a389c10a598f8ced575449686c.txt | 4 + ...efunc_3e35bb560dddb5f03f2d193e3e455d00.txt | 4 + ...efunc_fd847a19c1f5170be7d9a8e865ff9fb3.txt | 4 + ...efunc_7683083386c679d64322db896966279d.txt | 4 + ...efunc_8588ecfab0b1fa69e732bbad0941ebf7.txt | 4 + ...fault_f2be84eb0a72782680d35cf59765e9a8.txt | 4 + ..._true_a71d7635b10408058ae5f6f8337d1e0c.txt | 4 + ...efunc_d8d378cd430fd52648905d31467fd15f.txt | 4 + ...efunc_6d8030e9f8e12e3a882ebc492e1efb1c.txt | 4 + ...efunc_6549bbd875e087b9318ec6c35f61dd42.txt | 4 + ...efunc_8d28173c3875daee25c08f28b41fa510.txt | 4 + ...efunc_a0353f00c62b0daf50687e9c8d223391.txt | 4 + ...efunc_f7d39b8a11a3022e2ef1a697e3c46888.txt | 4 + ...fault_b2330479d7cdc3d3bd870cbda6e5a13a.txt | 4 + ..._true_b20f9d8b8dcf7e533b68a6db0194bc75.txt | 4 + ...sfunc_fff096d3faee3e5c8c1b1f5d09f407d1.txt | 4 + ...sfunc_33b8e30f7bf28e4f9dfc23d89e187438.txt | 4 + ...sfunc_efcb50766c5a8f17b97cfd5ad4ca67cd.txt | 4 + ...sfunc_96ece398c40750f59650d0c35f953dd9.txt | 4 + ...sfunc_f436b9a75e95db20869db3ea9fd57766.txt | 4 + ...sfunc_3d49d1a8bb960fe85c74d4deb4d3107f.txt | 4 + ...fault_b2440242cdba618522e76914ac63a054.txt | 4 + ..._true_4781fa0cc6abdaa0769dba2eb345e4cd.txt | 4 + ...sfunc_bbd4d2d294779b5762d02b2e1c07fb11.txt | 4 + ...sfunc_986ecd0589393eb937ceee2aa419f49e.txt | 4 + ...sfunc_cd5298d4aac80c862e718692bdf83eab.txt | 4 + ...sfunc_4d1ec0837eb25b77cd79886db2c4dee6.txt | 4 + ...sfunc_28db6ce107bc81f050f3de9a654f8fa5.txt | 4 + ...sfunc_3cb7a8609a8656ee321b953d5a5132f4.txt | 4 + ...utput_446d2d1421cca7b806743f01aa2251e4.txt | 4 + ...ation_4088972be574f11869e69d9d1c431607.txt | 4 + ...abled_61ee66481732a63208d4098cd765a529.txt | 4 + ...abled_0bf9b33f4064b46d0e661b92c60883b8.txt | 4 + ..._true_f476d94ad451540a483556ee84873425.txt | 4 + ...false_cc1fa20e0a32190d88a0227eb61a12a9.txt | 4 + ...ering_6e40ec8a557eaa730717359ad0e81955.txt | 4 + ...loops_41457e8139a808914d288744c4e0c532.txt | 4 + ...sions_4a8e4604acd824ebd86dd77c316ced30.txt | 4 + ...locks_faff63e221cd127f249022ff7517bb14.txt | 4 + ...false_c4f4ef6359c9b399bbe059b270d0388f.txt | 4 + ..._true_62ddfd676314329facbb84fd7db1974c.txt | 4 + ...nding_8fd46cbbe67a0d2871dee4eca5f8e38f.txt | 4 + ...roved_989341ea9ef14353decf0f2697a3b605.txt | 4 + ...known_8bdf6d6267e185f6eaaa261aed0851fd.txt | 4 + ...alues_2afc809a699663dfa53f333e524b3a75.txt | 4 + ...dling_8efdae73f991e421da3048f196d4f1e2.txt | 4 + ...utput_b2301585369bb0d0a7f195ff44444845.txt | 4 + ...utput_365585bce5e9853289b0f6a8cbded7d0.txt | 4 + ...plate_33b1269514e02c4c9e317b3bc202bb50.txt | 4 + ...plate_f8959e0699f3edad1645d14d94451687.txt | 4 + ...ample_77e6fc93cd860e93537231583cd9cf3f.txt | 4 + ...dling_1a606908d02705253fec4859259e69e2.txt | 4 + ...ntent_fe61d9bee5fc47e3ae2a25deab93660c.txt | 4 + ...ation_441036c464ee35f7b120090fe76d6936.txt | 4 + ...ation_cf3fa644ffeb7b672053fa0e989f55b5.txt | 4 + ...ation_40b3cb480f677f54d2ff8f47af37f7fa.txt | 4 + ...ation_d5c98b9f230e001f8aabf838d3774698.txt | 4 + ...ation_edc2f02149a3cdcced4e6d0830b5f251.txt | 4 + ...ation_6f13b7233db413c987e289ad2b3e3a3a.txt | 4 + ...ation_3ee70e5b90c1ff368a7783c49c6dc611.txt | 4 + ...ation_da96aac1987dbb33d41eb4a121419b47.txt | 4 + ...ation_2b3c4e3c244db77468813a7472298e82.txt | 4 + ...ation_a33dd3e79d24b4f31f6d4e92611f3f63.txt | 4 + ...ation_8c18fb8399a2fd1e65b0333bc01e041c.txt | 4 + ...ation_0109f6af5a474973b8b1b52636135c4f.txt | 4 + ...ation_eeecb969def01ab8005c7b9f23686fed.txt | 4 + ...ation_1437d0425640509570342c24b30de571.txt | 4 + ...ation_ba78b92bec7a4692a2043f2ba2ebe057.txt | 4 + ...ation_4ddb2a17755d3e775e3225970bc60a96.txt | 4 + ...ation_aa8aed9ef61b138a28efed42f4b72251.txt | 4 + ...ation_1729fad3a77618acdc687c9fb671b75b.txt | 4 + ...ation_d81de4ca83482c4836215ef7177d9eec.txt | 4 + ...ation_9c22f391d1d03fa66b3d18095354a236.txt | 4 + ...ation_0b1269c00fd15a74df125278ed6a9fc4.txt | 4 + ...ation_45fa7aa654c0dc06d1a1b9504002dfba.txt | 4 + ...ation_a705eb5ed83b4db368d7204baa136b36.txt | 4 + ...ation_527dd13a0a4ec520816dc6bb5f4c7279.txt | 4 + ...lates_3412d8be45b5f990c1e1bff365ae57dc.txt | 4 + ...adata_617be03c239297032907b0de8f4b03e9.txt | 4 + ...ation_56b68d6a3512c749780d10fa0efcc762.txt | 4 + ...ation_8ce219076424a268ded2740f54be7bc6.txt | 4 + ...rrors_4546acae1ccf8092d2178e7ce803985e.txt | 4 + ...rrors_b90f26866326dddf616dce19ccf8f8a1.txt | 4 + ..._HTML_f0f5f57b1f0e9b7d0cd2bee98022629a.txt | 4 + ...rrors_e6a7c767c8906df797e04d39ba8f3806.txt | 4 + ..._mode_64ae994d3dab8108fd9268bdfd83cba3.txt | 4 + ..._mode_d773b47c4c4366891bc6dd6e086cd138.txt | 4 + ...uotes_24d3faf147396fd00701c040dd088d1c.txt | 4 + ...uotes_8b3b7fed8756aacca4ddc48cda37862c.txt | 4 + ...space_aa45c5ab55dcf5752db629787123d549.txt | 4 + ...space_dc0893bda6faff8ecc29985263b68f44.txt | 4 + ...space_2e5584859fa6a3d0830bbc5ad9020767.txt | 4 + ...space_ec5b4690851677e250ac5506d70c355f.txt | 4 + ...sh_gt_ea0ed04bb6803d8a6cb24afe526c5a4a.txt | 4 + ...sh_gt_f890220bd65269c4616e9ce562492257.txt | 4 + ...value_2e196056650e47d46886938eb88136f7.txt | 4 + ...slash_98c2bda4f37e2def75e128c157a85691.txt | 4 + ...ibute_931bfa97f371f8e928acca75e13b12a0.txt | 4 + ...ibute_38764d937f028f392e97626cf259b809.txt | 4 + ...ibute_af387b2d214ba9baadbd062f15508d2d.txt | 4 + ...ibute_dbd22dd4679133f8be271e39a3a16b03.txt | 4 + ...butes_7f3da6be0ee282001178fde2500072e2.txt | 4 + ...ifier_1217bff44d65649359fd10110f8873b6.txt | 4 + ...ifier_ad89c5b890e891eda58e590a3eaf2e82.txt | 4 + ...value_bf55684b694d2aa471b24fa539546339.txt | 4 + ...value_ef9fee65e67c623b1cd991d44c9c0dc5.txt | 4 + ...value_bd2cc15e28c80a4cfdafb4467f6f0555.txt | 4 + ...value_3b99fbfb2dbe3aba937cc20311e7d331.txt | 4 + ...ibute_f25f6219b2cf10d288d83c451540e958.txt | 4 + ...eriod_ce133d95b3be56c458be6147bbb4418b.txt | 4 + ...slash_6db33df13355465e338194afbebd9174.txt | 4 + ...n_URL_0d5203d491fd23e18ad9d18972871f99.txt | 4 + ...ibute_bb7e4ba2925fabbda530de889e749a52.txt | 4 + ...g_tag_c6b0a14a338dd8edc4a12c0d19e7f542.txt | 4 + ...g_tag_64b6a6bf9a284ab86a9db5974b31b466.txt | 4 + ...ction_c25ae454841778f175fd05bfcdda8b42.txt | 4 + ...ntent_7f9125f551bc58d3dbfe940ac096a78c.txt | 4 + ...ntent_4a372fc4422be677973351bc351746ff.txt | 4 + ...cters_8c3ab9c7c35d3cc83316278049f22d3e.txt | 4 + ...reted_745d1382f26e84d827b38cdf475d33e3.txt | 4 + ...lines_fde68cdcd0102d806db2e3c69fa5e5cf.txt | 9 + ...ument_a80d5f083429384bc29f1c2a6bc80bf1.txt | 8 + ...ntent_9884f8776402de7d7296618307ccd714.txt | 4 + ...x_ERB_2c2d90415d057b7acbff8136b9e5e8bf.txt | 9 + ...tions_0550f12e814e4f157f6d0c72afe7b323.txt | 4 + ...tern)_4f9dc3882e1e756e56efaf4dc1561c12.txt | 4 + ...ntext_1c8a6d998d9daa0bbe631c88cd6098e0.txt | 4 + ...ckets_8684c648c8855fc8d36e691241c500b6.txt | 4 + ...paces_d7f7e4ef752a4dac58a4b97b06b627c1.txt | 4 + ..._HTML_37ac0c068811ca1c4a498dbf50d1fe06.txt | 4 + ...space_9cb56068ef4732067422a670d943c08e.txt | 4 + ...space_4644299a23e9ee76cdc970a26168b559.txt | 4 + ...l_tag_573b93df7df7d12ef12722008abfc7ee.txt | 4 + ...mment_f4042eb3e6a5d62fcc86e4162fe10cf2.txt | 8 + ...ctype_d50c7b32f19e4848938905f3dc675f44.txt | 4 + ...space_6bc67d7bee174842987d55662f6e3d1c.txt | 4 + ..._html_fe364450e1391215f596d043488f989f.txt | 4 + ...ctype_737d71ee3fb171f813731282cd802c3e.txt | 4 + ...ivity_2f56dc84fb5f8e284f42eae7d1f1c597.txt | 4 + ...ivity_3e5902254c42ff2df6f6321086040dbe.txt | 4 + ...ivity_8bc9e797250fadb2f5af79f38cf7d74e.txt | 4 + ...%_%gt_e97ed3ba194342cfe8febc1a40a3d603.txt | 4 + ...=_%gt_2d5c53c5a986076f8a5df2585ce5aa74.txt | 4 + ...-_%gt_b305aff64a566ea549c116aacb0ce86c.txt | 4 + ..._-%gt_34d2696185efe003bf3f2c2dddb924e3.txt | 4 + ...#_%gt_d59bec1a45925c1618c6d42541cb652b.txt | 4 + ..._%%gt_5856d025d70301b0cc95e2287a1d324f.txt | 4 + ..._%%gt_8bba62f5739809ebc6cf44f4206dd610.txt | 4 + ..._=%gt_344eadf6b1e04a6f534a3c7e38bbadf1.txt | 4 + ..._=%gt_273e03432c2039cc05443a602e8c633a.txt | 4 + ...value_91d881ce0dd66286e4866c07a91e025c.txt | 4 + ...efore_e474134558bf8ffccb829ba880271d99.txt | 4 + ...after_4ce9cd67e9f49e97d785cb27fb5e287a.txt | 4 + ...after_e07f0e9a593189f256789bd0ab7b5a82.txt | 4 + ...ntent_3b1dbeebb7d6cc88ee758abcd174c7c4.txt | 7 + ..._ruby_71e2451824a84db91b7e1cf752872168.txt | 11 + ...t_tag_fae7aab59f46d7906cdeccfc1fa2cb3e.txt | 8 + ...miter_15e84c87986bd8a2aba06dcee2be46b8.txt | 4 + ..._<_87acb03b9542ddbc824f5bbd080a5cd4.txt | 4 + ..._>_58ba3bb1a1772a74392e5e86bd2be4b7.txt | 4 + ...nbsp;_cc7819055cde3194bb3b136bad5cf58d.txt | 4 + ...quot;_eb6439de53405a48b124e7cf89ba71d3.txt | 4 + ...apos;_e38c1fb206aebfcf7289482b93815826.txt | 4 + ...rsand_c2249209343ab488c055da76368f04a0.txt | 4 + ...rsand_6cff047854f19ac2aa52aac51bf3af4a.txt | 4 + ...1_nil_560d7cfe153ff63e50fbb9a506bd32ba.txt | 4 + ..._file_d41d8cd98f00b204e9800998ecf8427e.txt | 4 + ..._feed_68b329da9893e34099c7d8ad5cb9c940.txt | 5 + ...eturn_dcb9be2f604e5df91deb9659bed4748d.txt | 4 + ..._feed_81051bcc2cf1bedf378224b0a93e2877.txt | 5 + ...lines_e1c06d85ae7b8b032bef47e42e4c08f9.txt | 6 + ...space_d784fa8b6d98d27699781bd9a7cf19f0.txt | 5 + ...after_68423faee48fc1bab08291a512861446.txt | 7 + ...ntent_f41121a903eafadf258962abc57c8644.txt | 6 + ...ments_832f3c170675c57ee6c4b54c3dc60462.txt | 6 + ...ments_abaab2c016a126725eb69381cc13978a.txt | 7 + ...ments_5b50a444e2f5be5630be45cec35181eb.txt | 7 + ...c_tag_c83301425b2ad1d496473a5ff3d9ecca.txt | 4 + ...d_tag_0a22925ab034fd09eb49cc4224720dcb.txt | 4 + ...space_917eccff1c0d00dbdc9bbe20d07c939c.txt | 4 + ...d_tag_45f3ec5566563217212e18f9f9983f0a.txt | 4 + ...html__b7b46dcd10fad620a00a95b27daab204.txt | 4 + ...ntent_f797031f3210ce6494466d619610926c.txt | 4 + ...g_tag_fed80eb194a51acda7fe05820e850451.txt | 4 + ...g_tag_82af2795699fe4f5b34f32ed1491228a.txt | 4 + ...g_tag_f00fb4a0aa00f7c763be88670c0bc05d.txt | 4 + ...k_tag_aab5814bdfc527d6d55d8957f089b911.txt | 4 + ...ntent_4dc7bb0f7aaadf0c36061e92ff8d581b.txt | 4 + ...eriod_d654eb23e13156b3de00db20412d10d4.txt | 4 + ...._4K)_998d9cbd9b8794fa030c888bfa09cad4.txt | 4 + ...._8K)_45e3ecb8edc7dbec7d68b72b5d083439.txt | 4 + ...space_7215ee9c7d9dc229d2921a40e899ec5f.txt | 4 + ...space_0cf31b2c283ce3431794586df7b0996d.txt | 4 + ...ines__ff50772e7d3bdf3652ee7b345823b611.txt | 7 + ...space_8df6fbcc43d31d99e5112eb009ed8a2d.txt | 4 + ...wline_68b329da9893e34099c7d8ad5cb9c940.txt | 5 + ...006_!_9033e0e305f247c0c3c80d0c7848c8b3.txt | 4 + ...slash_6666cd76f96956469e7be39d750cc7d9.txt | 4 + ..._dash_336d5ebc5436534e61d16e63ddfca327.txt | 4 + ...score_b14a7b8059d9c055954c92674ce60032.txt | 4 + ...rcent_0bcef9c45bd8a48eda1b26eb0c61c869.txt | 4 + ...colon_853ae90f0351324bd73ea615e6487517.txt | 4 + ...quals_43ec3e5dee6e706af7766fffea512721.txt | 4 + ...quote_b15835f133ff2e27c7cb28117bfae8f4.txt | 4 + ...quote_3590cb8af0bbb9e78c343b52b93773c9.txt | 4 + ...signs_83699a49d8884e65d9291885a6448e44.txt | 4 + ...signs_4a8c3066e1720f3068d5559fc41acb0c.txt | 4 + ...signs_6f6dcf1103a1b99a952c36d32a89a2ec.txt | 4 + ...ytes)_8419b71c87a225a2c70b50486fbee545.txt | 4 + ...ytes)_bca53fde466a76b7bee3e18997e94a7a.txt | 4 + ...ytes)_9a9854bb735591cd2296c7d2e7c70c96.txt | 4 + ...cters_0a09d7ee1e23c509e5e6846c86823081.txt | 4 + ...UTF-8_60791161b6a23965fd2c7c4f28b40ef7.txt | 4 + ...L_tag_23d7cee67799f39f80ff3c8c3f123876.txt | 4 + ...value_33c8000ce11b738c064a2480a67cd966.txt | 4 + ...NBSP)_7215ee9c7d9dc229d2921a40e899ec5f.txt | 4 + ...mbols_56dca1fb5e06fa932b775ab821350f5d.txt | 4 + ...uence_20411a338175125c89c7b53b1a7171eb.txt | 4 + ...cters_65396ee4aad0b4f17aacd1c6112ee364.txt | 4 + ..._text_9530db02d3c8217be00c1aa98ec51861.txt | 4 + ...cture_2eedd7e4e1585b52553db2fcf70bdfb9.txt | 4 + ...oning_87772e0d3b85d8cab09a1c354d70b213.txt | 7 + ...h_ERB_b6276e3bed3faa902628e7bd34d5d3d7.txt | 4 + ...ation_66973079dc7fdc0eedbbcbed1bf0bde0.txt | 4 + ...oding_447d423b62bc6692ce2266e1dfb0a3b5.txt | 4 + ...859-1_dd4263447c1fda5ed82c31b9d2f8f24c.txt | 4 + ...alone_5aa41195cf30adefdbca245f08726269.txt | 4 + ...butes_3ef840d0361caa4801a5f9ec97056a2b.txt | 4 + ...ive_1_e4e345519e2b76863647d3351ace49e0.txt | 4 + ...ive_2_2c7827fc01b52f3dd103b842f07d2742.txt | 4 + ...ive_3_19078f9a0d7c42b40a7aa66ccde337be.txt | 4 + ...paces_0f70f9dc3f7c17d88be358a804043833.txt | 4 + ...lines_01fc1f4f0cc30f25fccc96fca16afed4.txt | 6 + ...uotes_ee83d90fd5287d588959a3a5b611d6ce.txt | 4 + ..._html_d3329c9fd9d81fa8c7e39656c4e48b5c.txt | 6 + ...butes_58a307bbb974b5a37bc8c4923f05efa0.txt | 4 + ..._name_f7d2a0c99c36c831df198c15d8c2c17c.txt | 4 + ...butes_bf952621ac1542b125217fd3c3171e28.txt | 4 + ...g_tag_fed80eb194a51acda7fe05820e850451.txt | 4 + ...g_tag_82af2795699fe4f5b34f32ed1491228a.txt | 4 + ...g_tag_f00fb4a0aa00f7c763be88670c0bc05d.txt | 4 + ..._sign_60301c34c290d45874e5f104c39feb48.txt | 4 + ..._sign_0b81ef4e70d5dcbdc23a01ccdafa82d1.txt | 4 + ..._sign_a091f9fc2d9abdcd3635fead31e4c2d6.txt | 4 + ..._sign_4ebf4e0cdebb1bc4b622110bb23e6e32.txt | 6 + ..._sign_681faac92b6d7bfe9954598e50a1b645.txt | 6 + ..._sign_4ba041e2c7c630bf5e27bc3ea50f4ecf.txt | 7 + ..._sign_8ae625bfdbec9821b0afa0459e67f863.txt | 7 + ...point_d037dd6a201e88e55e6ab86bd2595ba9.txt | 4 + ...h_url_02762c59a138badb5bfea6b275ae6251.txt | 4 + ...uotes_cbaae19549457c1f74162c0f28dbb022.txt | 4 + ...uotes_fbfe8fcce107a09add4af69465c4037d.txt | 4 + ...uotes_e431474b58446f910c9425491add27a0.txt | 4 + ...uotes_73b1e8ba6af89da5d178df9a5b3781fc.txt | 4 + ...uotes_1ad5f48462c267e84580003c8ac9abac.txt | 4 + ...alues_8cbc6c3a58ce6e2fd57c03326bec1b73.txt | 4 + ...butes_c8a24bb6a12da051002e130b8c94b4b4.txt | 4 + ...uotes_fb1d0c6f864f1f46ac83f42d1250c9ad.txt | 4 + ..._name_89984a18a28d8c5c73db29753dc762c2.txt | 4 + ...alues_d5cd679cddf6b4eae3a0c22c008acaae.txt | 4 + ...ymbol_90ae5bd03544cde697c6898cc52d03a7.txt | 4 + ...terns_1c9d04c71dfedc10b544c42b3452367c.txt | 4 + ...v_tag_0fac4a8abe9de4433967e825056a4635.txt | 4 + ...v_tag_651fc560524277c36845d3e3e3cb01ae.txt | 4 + ...v_tag_1f97e198235e78d1a25174baf6e1973d.txt | 4 + ...ibute_b71e23ffa38851540e408d9383abd12c.txt | 4 + ...value_6583f84753df8346dcd916f07301fc6b.txt | 4 + ...alid)_8718691f5760feaae83ee2b77c476b95.txt | 4 + ...alid)_237e4c11b70033b3f49f29b7e3c9cb70.txt | 4 + ...alid)_5eb53ae0e5d34773abdd248e275f8c51.txt | 4 + ...alid)_0545b512ba1dfae2fd7c90ec643b4cca.txt | 4 + ...alid)_542130e358dadabeb4a1629bc9bcf4f3.txt | 4 + ...value_48a4fb492a8544d35ffb4d589f5a602c.txt | 4 + ...tiple_4f1d1b98f3b9c869967323f090d9afee.txt | 4 + ...value_14a36e2ed468092336d9f6080e939190.txt | 4 + ...butes_355d0da3aae174783058e2ccec41ac05.txt | 4 + ...valid_c037b25064b31d22c6c195361999c5b8.txt | 4 + ...valid_e30b590c384b162d5019345f8083bfdb.txt | 4 + ...valid_f2b2354b82896dec0458b506ae56eb58.txt | 4 + ...yntax_e3d2d0afe1a0d7a4f71d0831ed0a9306.txt | 4 + ...ng_it_56df6b7e184a50db1eac62508206a332.txt | 4 + ...ibute_a42f2f02865b5934ab801e14209484bb.txt | 4 + ...space_eb449fdccded7b58eaadee0d6a709b70.txt | 4 + ...g_tag_10073da0ec7061aa368fad226ff8dd33.txt | 4 + ...ibute_2f302cf3eda407efbc8e40d14cd26656.txt | 4 + ...ibute_ac9036a484da8a6accae805201ef2dca.txt | 4 + ...butes_d3642056798166a35948c97b38bde43d.txt | 4 + ...29e8b-b26dbda6d8a652930695c93bd07179f4.txt | 7 + ...901a9-b26dbda6d8a652930695c93bd07179f4.txt | 5 + ...5b3ec-b26dbda6d8a652930695c93bd07179f4.txt | 8 + ...ction_c25ae454841778f175fd05bfcdda8b42.txt | 4 + ...ntent_7f9125f551bc58d3dbfe940ac096a78c.txt | 4 + ...ntent_4a372fc4422be677973351bc351746ff.txt | 4 + ...cters_8c3ab9c7c35d3cc83316278049f22d3e.txt | 4 + ...reted_745d1382f26e84d827b38cdf475d33e3.txt | 4 + ...lines_fde68cdcd0102d806db2e3c69fa5e5cf.txt | 9 + ...ument_a80d5f083429384bc29f1c2a6bc80bf1.txt | 8 + ...ntent_9884f8776402de7d7296618307ccd714.txt | 4 + ...x_ERB_2c2d90415d057b7acbff8136b9e5e8bf.txt | 9 + ...tions_0550f12e814e4f157f6d0c72afe7b323.txt | 4 + ...tern)_4f9dc3882e1e756e56efaf4dc1561c12.txt | 4 + ...ntext_1c8a6d998d9daa0bbe631c88cd6098e0.txt | 4 + ...ckets_8684c648c8855fc8d36e691241c500b6.txt | 4 + ...paces_d7f7e4ef752a4dac58a4b97b06b627c1.txt | 4 + ..._HTML_37ac0c068811ca1c4a498dbf50d1fe06.txt | 4 + ...cture_61eadd3877dc3642e8e24238fddc9b34.txt | 21 + ..._loop_e0b9e9e369a74b4d48962fb7540684ff.txt | 9 + ...round_2ec87bf5c1413bcb7f9a5f7a2569a50c.txt | 4 + ...space_9cb56068ef4732067422a670d943c08e.txt | 4 + ...space_4644299a23e9ee76cdc970a26168b559.txt | 4 + ...l_tag_573b93df7df7d12ef12722008abfc7ee.txt | 4 + ...mment_f4042eb3e6a5d62fcc86e4162fe10cf2.txt | 8 + ...ctype_d50c7b32f19e4848938905f3dc675f44.txt | 4 + ...space_6bc67d7bee174842987d55662f6e3d1c.txt | 4 + ..._html_fe364450e1391215f596d043488f989f.txt | 4 + ...types_9b920c07c2b2e29b9dcf6cd03f842e08.txt | 4 + ...ctype_737d71ee3fb171f813731282cd802c3e.txt | 4 + ...ivity_03935adb0833c1f800be8baa0a8aca3a.txt | 4 + ...ivity_2f56dc84fb5f8e284f42eae7d1f1c597.txt | 4 + ...ivity_3e5902254c42ff2df6f6321086040dbe.txt | 4 + ...ivity_8bc9e797250fadb2f5af79f38cf7d74e.txt | 4 + ...ivity_d1d92cd6681949b6e66a00ae3723d8db.txt | 4 + ..._WASM_80add5eb3bf3a17e7876c782149006c7.txt | 4 + ..._WASM_c48afed3f492d894f773632b9330711d.txt | 6 + ..._WASM_3f395dc69d5df0ce0402883cd47293b6.txt | 7 + ..._WASM_4be17b3766f5510167adb479b31b2b4f.txt | 4 + ...ttern_ea1837358e5d92dc27f3ebc732e29b2e.txt | 4 + ...chars_3bb2ce1e24211062fc3fa825c1767349.txt | 4 + ...chars_bda3d6ebbb2e5932b920185cd68950ef.txt | 4 + ..._case_cdbad97ea27261ab11f913487868cd74.txt | 10 + ...hars)_4fe8fcfa6bcae0265af504079dfc7750.txt | 4 + ...hars)_e81e7aeeac8d7497b1f6a7aaab46fb8e.txt | 4 + ...hars)_b5067ef843b31e2600bca3666b1373be.txt | 4 + ...hars)_566c579c86530344638582e132b3ad3a.txt | 4 + ...ments_fd264dd0963e8184e401ecf94660e02c.txt | 106 ++ ...ments_b27affac9517c40f3da7970c4b2897e5.txt | 8 + ...ments_1791ff87a3ae9107f3e81eb8a9468480.txt | 10 + ...cters_c9c7a6ac6def4398ca4d3861a8e858f0.txt | 4 + ...cters_b84837a38576d7939090ae65c4a7a54c.txt | 4 + ...ments_2a331384f53de2cf7e9d3032e996effc.txt | 4 + ...hars)_791e9dbb42459f726dabd970e696e466.txt | 4 + ...hars)_cd586a88c298c2343c3ca3dc7ba80c74.txt | 4 + ...rflow_e72cfd71cc26ff1d873beef96c85f484.txt | 4 + ..._case_4381c3a904ccd25a1b127bf8791ac8cf.txt | 1006 +++++++++++++++++ ...level_486c2e36d7c731369b8bc10cc66d671e.txt | 4 + ..._body_439bfe606142d918aa22c2f4185d92dc.txt | 4 + ...ntent_7508a1f47d3869a85e963b96503528a8.txt | 4 + ...ntent_0a6d20b02f933f919dd2a5fc4993ff3a.txt | 4 + ...ntent_b2e0f59912288eae0790d132dc089534.txt | 4 + ...e_tag_eab2e64d663c26be3ae86f89610a672c.txt | 4 + ...value_2e13bc9eabd550dcbe23f58ac7a01f99.txt | 4 + ..._name_871cced3d8488a845c21475c5f4a6bf1.txt | 4 + ...m_erb_6deab49e2013213118a8f42af42b09cc.txt | 4 + ...ation_5e8726c0d7af3e9fee35d7586439494b.txt | 4 + ...after_577fbfc1e05fc1491bca41219ad1739b.txt | 4 + ...efore_3ffeddb4062aa4c9f5beee20a3dc50c8.txt | 4 + ...efore_47cae9bfcf12e434a763c78aad910e38.txt | 4 + ...after_c840a0e926fd1dd829420021b6f5da39.txt | 4 + ...round_2d529a29e9c00085642b4f843fd79c5c.txt | 4 + ...mment_bfdabf4936ec72a10ffc2e12adfb446a.txt | 4 + ..._tags_53b63ea8caff68a33c4251d086ba42b9.txt | 4 + ...butes_a13d36a12e1c3d8ff1d625b0a32793fa.txt | 4 + ...mment_e95f45b0f3e230c24e11f4b083de23f5.txt | 4 + ...mment_14c1f84ba7b4627b3e0dc3ba74179bb8.txt | 7 + ...yword_dd7885019a51280cc6cfef734bf1161a.txt | 7 + ...uotes_81968725d5b5d72882f6ae09a80071b7.txt | 5 + ...uotes_aa9928aed6dc45d5fd983a3030e6c4ad.txt | 5 + ...de_if_8194229e22f698062f184c58c874d6d1.txt | 7 + ...de_if_5332acffecc53cb1b561a5e02e44e8fa.txt | 7 + ...ntent_3b1dbeebb7d6cc88ee758abcd174c7c4.txt | 7 + ..._ruby_71e2451824a84db91b7e1cf752872168.txt | 11 + ...t_tag_fae7aab59f46d7906cdeccfc1fa2cb3e.txt | 8 + ...mment_e8fcfae8cbd25e4139394b5c1ffc1935.txt | 8 + ..._sign_312beb21c876bb87e5bbb8c9288a5bd1.txt | 4 + ...paces_be2c65ad965090f17c18896f988e85a9.txt | 4 + ..._sign_bb3c3c1637a687e1d87a90a893fa09fd.txt | 9 + ...e_tag_e5e99c2c84b3c9a106b8cf08b02ce9d6.txt | 4 + ...e_tag_040322f44f30d4766dc7bfe98114d53f.txt | 7 + ...e_tag_276e28a241d24b1f8016400a1c84fef1.txt | 11 + ...g_%gt_1e22264334529582735f76812bfeec73.txt | 4 + ...ng_gt_2707e9fbfa1307c14d5d6deaf40bd0af.txt | 4 + ...miter_15e84c87986bd8a2aba06dcee2be46b8.txt | 4 + ..._feed_68b329da9893e34099c7d8ad5cb9c940.txt | 5 + ...eturn_dcb9be2f604e5df91deb9659bed4748d.txt | 4 + ..._feed_81051bcc2cf1bedf378224b0a93e2877.txt | 5 + ...lines_e1c06d85ae7b8b032bef47e42e4c08f9.txt | 6 + ...space_d784fa8b6d98d27699781bd9a7cf19f0.txt | 5 + ...after_68423faee48fc1bab08291a512861446.txt | 7 + ...ntent_f41121a903eafadf258962abc57c8644.txt | 6 + ...ments_832f3c170675c57ee6c4b54c3dc60462.txt | 6 + ...ments_abaab2c016a126725eb69381cc13978a.txt | 7 + ...ments_5b50a444e2f5be5630be45cec35181eb.txt | 7 + ..._tags_baeb3672776170cce3b96907cd7c9bb7.txt | 10 + ...1_nil_560d7cfe153ff63e50fbb9a506bd32ba.txt | 4 + ..._file_d41d8cd98f00b204e9800998ecf8427e.txt | 4 + ...rison_986012b1810325f86cbfc83a34165cf6.txt | 4 + ...rison_c91f3c6a114f0255015282bad4fd59b6.txt | 4 + ...teral_9287823706422dd5f10c14109bd0bc25.txt | 4 + ...mment_22b0049eb8bc227ece2a9f520a4e4ec3.txt | 4 + ..._HTML_5c0e9eb44b2e454a0cf0f8d3eb15000a.txt | 11 + ...tring_b1ffbf793264421bcbb1b9d6087f10b2.txt | 4 + ...ntent_c3dcacbbac9dfaafc8298a1e8b6df38b.txt | 4 + ...tring_4d120bcac86583501954aa7c7d1b54f8.txt | 4 + ...tring_ccf8337d19aea0367aac410fe8cb6b02.txt | 4 + ...ation_d091c43ef237db588be6adf2a4f24b61.txt | 4 + ...tions_1c032866b0f442a891b17fca46aefe9e.txt | 11 + ...rings_b1151f65233be7cb601bd69e7e414a79.txt | 13 + ...ector_3675980b06d0732a42d3e3d4da50428f.txt | 4 + ..._HTML_6024cebc93b5103ba789a52ba13c2f01.txt | 4 + ..._HTML_aa75bbfce10aaa99576a8041bc62e42a.txt | 4 + ...ation_e7608ec944a2eed2de2082144b6ccbff.txt | 4 + ...ntent_2029b62a2d67c13cdb6a6109966d1952.txt | 13 + ...ring)_52a2de99ba9b0a7cc84920e0376f62d5.txt | 7 + ...ckets_76ffe5ab074bc06a6215d144ba302d68.txt | 4 + ...ctors_85e3c3a8a155fa6bba717f6f71bd20d9.txt | 11 + ..._HTML_c96ddb0da7bec2ac0fb9f59040acf0b9.txt | 12 + ...yntax_2dbf7fd3cfd4a7582954347fc9098b10.txt | 11 + ..._tags_90e333bda009d6740ab8a936de1f6121.txt | 4 + ...ntent_d81018eb4e7c7c6fc05c8b35a8cfd494.txt | 14 + ...ckets_d4a0cc7e0c3d0525fa86d830732dd9c6.txt | 4 + ..._HTML_2696010b25079cee665dad541e6a3c9f.txt | 10 + ..._calc_5b9a8e819022c7cd704610880a30afd3.txt | 13 + ...t_end_1ccec9a4a170634bddb31f9c22d0fbc5.txt | 4 + ...cters_adba6c52b9f376024caae0fb1a7c3804.txt | 4 + ...ytics_bbdcf8626f2d4ba86e193cf8a0898cd4.txt | 10 + ...e_271_a44d9ed4b4dc95089740ac1df66eb9af.txt | 8 + ..._tags_ffab60cb04f4e44e1ee7ed24d4ac9563.txt | 4 + ..._tags_34e16086c329d845a1defbf80502a3a7.txt | 4 + ..._tags_6bcbe820b5902dfe97a869593621bebf.txt | 4 + ...rings_3217a5ed01ac8ce6c44f9e106f9b4017.txt | 4 + ...ntent_e270b9ac006614d91dd6f0ac8fa94fa0.txt | 4 + ..._tags_13c557e6f9f1cb452509b1e1750ede1d.txt | 9 + ...ssed)_b67f69c998376fb2dc4d376e22d717a6.txt | 9 + ...rings_e40c255ffc82b3e1425a4dc9931950fb.txt | 9 + ...uotes_2c6059f094bb5e1ee9bda67bc46c8733.txt | 4 + ...uotes_d59cd4bf09cc0b041c800441470bd40b.txt | 4 + ...erals_1bf37f10e055cd40a4029b93ebf85e4c.txt | 4 + ...tring_c10abf5afe91f2c24667c89a1a2da782.txt | 4 + ..._line_9ee69c6b662e77ee693b096f74ddc97b.txt | 4 + ...rings_a74d4a4f4488689aceb2070a2901e6d2.txt | 10 + ...mment_6cfabe5d024715f9a1a359ead2336bde.txt | 7 + ...mment_f31fa6a4dd0f181740b8650c7c0eadba.txt | 7 + ...mment_740adce7cfe9c265534de5ed0019592a.txt | 11 + ...rings_dd4ddc45ba4f6eac82de8f8d0c4f8430.txt | 11 + ...rkers_a4df6fe19ac8d1b0a34db42d412a673e.txt | 9 + ...ments_231feb7c74575ff4cfc97fdfbdb892f6.txt | 9 + ...g_tag_baba657d4b37767ec99d327b6dec635a.txt | 9 + ...line)_372da24666282e3c531de3c5a8de44ca.txt | 7 + ..._line_b0c5fd685fa4dd26975b5ddf24ca007d.txt | 10 + ...tring_01f7309c0ef4f1977a6265ed3ae833e1.txt | 4 + ...1_svg_7b56e1eab00ec8000da9331a4888cb35.txt | 4 + ...ement_cf28475021c890620282e29c683e5d2c.txt | 7 + ...ement_f3bf2c27b88d669126ee1c419f491e08.txt | 7 + ...ement_da5904bd14662799ee327966686eafdf.txt | 9 + ...n_svg_1072d4c2f81d845d5c1f0fd86e40e23b.txt | 7 + ...error_e086a53256a215470da47ef3ee745599.txt | 7 + ...y_tag_dfc9870d38d11e806e61bd5a448afc82.txt | 4 + ...space_1e2608bc54aecef5ea56dede40640b51.txt | 4 + ...wline_d07900ededde58845d8cc2ee728ace9f.txt | 6 + ...g_tag_8b0f0ea73162b7552dda3c149b6c045d.txt | 4 + ...e_tag_199572db6113ce1e4ad9d3fca66efc11.txt | 4 + ...g_tag_c5a0e9b5c299ec39a2fb26fa8b1c0dcf.txt | 4 + ...ement_fa5881a4aafaf2629472fd2300394826.txt | 4 + ...ement_0a3a0b592b9c285e050805307cee87c2.txt | 4 + ..._tags_a371ac3aeb62b4174f84c9a365449896.txt | 4 + ...c_tag_c83301425b2ad1d496473a5ff3d9ecca.txt | 4 + ...g_tag_7165dc23abec2b6bf23cbd14f51aa23b.txt | 4 + ..._tags_f5b31fa25627c8dfbb3b8527c3cc2b02.txt | 4 + ...d_tag_0a22925ab034fd09eb49cc4224720dcb.txt | 4 + ...space_917eccff1c0d00dbdc9bbe20d07c939c.txt | 4 + ...d_tag_45f3ec5566563217212e18f9f9983f0a.txt | 4 + ...l_tag_b7b46dcd10fad620a00a95b27daab204.txt | 4 + ...k_tag_aab5814bdfc527d6d55d8957f089b911.txt | 4 + ...ected_6e2c034f618cde6b7e1ce8830aebdbcf.txt | 4 + ...g_tag_367b18f93b441feceb00bf866bb7a9a7.txt | 4 + ..._tags_b3702347c5b2426cdbc11f7c38dd944b.txt | 4 + ...g_tag_55697eb571d997f32e6851b1abb5aecb.txt | 4 + ..._tags_6ad485b119da439f33eef2025393e3ea.txt | 4 + ..._tags_f273b8d48121740a82fdcc71150f3710.txt | 11 + ...g_tag_8899d88bdd54fed8935467e2c9284fd1.txt | 13 + ...space_0ee4b96cac701f87a8b6cb0cf5ad48bc.txt | 4 + ...d_div_40b4741e518839bafbaaa187c5a57d50.txt | 4 + ...rison_e217953abdc486dffee56f0400c66822.txt | 4 + ...rison_e15b637d8eae8240a61a21ab4fd07798.txt | 4 + ...erals_9287823706422dd5f10c14109bd0bc25.txt | 4 + ...tring_cf1f4c343891b3817c5470dca59c8a20.txt | 4 + ...cript_d4ca03bf5174f86b127d57032ebb1215.txt | 4 + ...ctors_78cfabdfd368bd486b01a414bd09cead.txt | 4 + ...ector_aeb1512ea553ab369a3129d25e6677b6.txt | 4 + ...ntent_6024cebc93b5103ba789a52ba13c2f01.txt | 4 + ..._HTML_818730ef059d97de51c35b83d28174da.txt | 4 + ...rules_d3ae213f84137865eff551bb3d76bd9d.txt | 4 + ...ation_7d12ef54ba3782ad4d601e7610c7946a.txt | 4 + ...ation_bba0dcc89d67e474bb211be3f0d2409c.txt | 4 + ...t_tag_977fd571d75951006fee6224e29eecc7.txt | 4 + ...e_tag_775eb6185ea4b75bb77b29c265ddeccf.txt | 4 + ...t_tag_fc501b4a6704f6876be9da0803cd7f4f.txt | 4 + ...e_tag_85b429eb81f7b5bdac22f4497078d9bf.txt | 4 + ...terns_309a5ac75f46065b5e2b74fb9d181397.txt | 17 + ...ctors_72f0d1b607c34d65ded310921c9faed9.txt | 15 + ...re_gt_045e6b8518e8214f621854f251d1f323.txt | 6 + ...re_gt_c39bc3d537f50940f8301bcf5be6a5e9.txt | 6 + ...re_gt_c9d0ca9f702b1a3786a1a8ba835fb475.txt | 9 + ...e_312_21edeff96dc8abdda36ff23ee2318648.txt | 14 + ...re_gt_004b02b673d57d73eb07a649eb08e705.txt | 7 + ...ntent_b10a8db164e0754105b7a99be72e3fe5.txt | 4 + ...e_tag_f797031f3210ce6494466d619610926c.txt | 4 + ...after_72f22f51d0be53cd7b1017d11f441721.txt | 4 + ...efore_75206a4d9262b9f527267fab91d7fac4.txt | 4 + ...round_36c530447a30a5bccff1c61bc5e4465d.txt | 4 + ...._4K)_998d9cbd9b8794fa030c888bfa09cad4.txt | 4 + ...._8K)_45e3ecb8edc7dbec7d68b72b5d083439.txt | 4 + ...ntent_9c8b60515462c86eadd2d66da6a0ce2b.txt | 4 + ...ntent_674270ea117383eb846ea45b78e9e1ba.txt | 4 + ...ntent_78055134c44e1a49f3c26e4b6374cfbc.txt | 4 + ...ntent_f53ad262a8d52fd1cab61f9120cf892a.txt | 4 + ...ntent_40a2513c491b7ca4305c3896365639cc.txt | 4 + ...ntent_0c16eab1f0efae1c3decd29d686ebf92.txt | 4 + ...ntent_a92547d4939f0d1193fc1687ead68a69.txt | 4 + ...ntent_58ddd13aa94e0673c3d5a0b0117eac43.txt | 4 + ...ntent_e4a58fb0e007fd23a3ecb20c2d56ac80.txt | 4 + ...ntent_6dead327b63bdf32ce5db6c692032e76.txt | 4 + ...ntent_9334b21b7f71cf0efa54e9bf47bc375d.txt | 4 + ...ntent_50f7d033b0fe8ad1380a1ce908786917.txt | 4 + ...ntent_87def4693e30550387f2812dec2219e6.txt | 4 + ...ntent_9103b0fde88de0288ca8ca03532d66b7.txt | 4 + ...ntent_fc95de76ebff55679d202ded6f4f04d0.txt | 4 + ...ntent_400a6eb23cb6b83dd9a0bd4ddeff8409.txt | 4 + ...ntent_171ed99b0854aa35f50c3371b07fffcc.txt | 4 + ...e_310_1f905e5ab087b22e76444d7e98132e6d.txt | 4 + ..._text_7a2675aa6ba4cdbc5080233628d5e45e.txt | 4 + ...value_4ef6c07c78dcc312066ef682f96c0253.txt | 4 + ...e_285_b4af64f3ea734ed4c7510e7e5738841a.txt | 4 + ..._text_b0241d43408d1826ae74f1bbec2e6413.txt | 4 + ..._text_33e06a6d495e2d066b5a1a7be86f91c1.txt | 4 + ...h_ERB_a4b70c6afcd72595d84b1468a8b61d3a.txt | 4 + ...value_e5290cd6e77d3872131d3aa211bea034.txt | 4 + ...e_467_f19a10dc1b4a48f5239d4125ed18cf18.txt | 4 + ...e_635_816fd02d8670264d606d92812679f159.txt | 4 + ...e_633_fd1ab6af93689cddc537bac4cbdaefde.txt | 5 + ...lemet_856d313d5fa2c08f87ea3b9a79a870b0.txt | 5 + ...lemet_46999175f7a57d90bf4ac8417289630d.txt | 5 + ...lemet_39365d03f7c1b51be8ba359dcdda448d.txt | 5 + ...lemet_9259b210ee4ee3e7703e1a42face4fcf.txt | 5 + ...ntent_f3edaaa492cb5b32fe7efb719ecf05a7.txt | 5 + ...ntent_5b6b2be6ae09fde85f0cefaad29486e4.txt | 5 + ...ntent_49687542f26edd7a1b84fb2dad013531.txt | 5 + ...cters_911649c567a66a8501fd3b2507be99ab.txt | 5 + ..._case_0f5afa2ae1df8b048986f5c5354f59b7.txt | 6 + ...fault_596726fb05a5adb8f455e308fc4a08a0.txt | 5 + ...a08a0-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...81854-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...36889-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...5796f-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...954fd-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...5e514-b26dbda6d8a652930695c93bd07179f4.txt | 8 + ...fcd51-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...62d2b-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...82037-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...81c15-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...ef3b4-b26dbda6d8a652930695c93bd07179f4.txt | 7 + ...3228e-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...35a52-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...5975d-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...f0136-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...af251-b26dbda6d8a652930695c93bd07179f4.txt | 8 + ...15ea1-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...fe81b-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...b8baf-b26dbda6d8a652930695c93bd07179f4.txt | 8 + ...5b3ee-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...04808-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...36cff-b26dbda6d8a652930695c93bd07179f4.txt | 6 + ...ation_66973079dc7fdc0eedbbcbed1bf0bde0.txt | 4 + ...oding_447d423b62bc6692ce2266e1dfb0a3b5.txt | 4 + ...859-1_dd4263447c1fda5ed82c31b9d2f8f24c.txt | 4 + ...alone_5aa41195cf30adefdbca245f08726269.txt | 4 + ...butes_3ef840d0361caa4801a5f9ec97056a2b.txt | 4 + ...ive_1_e4e345519e2b76863647d3351ace49e0.txt | 4 + ...ive_2_2c7827fc01b52f3dd103b842f07d2742.txt | 4 + ...ive_3_19078f9a0d7c42b40a7aa66ccde337be.txt | 4 + ...paces_0f70f9dc3f7c17d88be358a804043833.txt | 4 + ...lines_01fc1f4f0cc30f25fccc96fca16afed4.txt | 6 + ...uotes_ee83d90fd5287d588959a3a5b611d6ce.txt | 4 + ..._html_d3329c9fd9d81fa8c7e39656c4e48b5c.txt | 6 + ...tions_aa9ca6f9069972c106bfcfe505a0a080.txt | 4 + ...ntent_7c2a2a608c90a24e12d1d51c9db4cec2.txt | 4 + ...ument_b4aebebe021e8c204e11f2d48215323d.txt | 7 + 811 files changed, 5430 insertions(+), 8 deletions(-) diff --git a/test/snapshot_utils.rb b/test/snapshot_utils.rb index 562df24ec..4a2b5b6f6 100644 --- a/test/snapshot_utils.rb +++ b/test/snapshot_utils.rb @@ -85,15 +85,15 @@ def assert_evaluated_snapshot(source, locals = {}, options = {}, **kwargs) def snapshot_changed?(content, source, options = {}) if snapshot_file(source, options).exist? - previous_content = snapshot_file(source, options).read + previous_full_snapshot = snapshot_file(source, options).read + current_full_snapshot = format_snapshot_with_metadata(content, source, options) - if previous_content == content + if previous_full_snapshot == current_full_snapshot puts "\n\nSnapshot for '#{class_name} #{name}' didn't change: \n#{snapshot_file(source, options)}\n" false else puts "\n\nSnapshot for '#{class_name} #{name}' changed:\n" - - puts Difftastic::Differ.new(color: :always).diff_strings(previous_content, content) + puts Difftastic::Differ.new(color: :always).diff_strings(previous_full_snapshot, current_full_snapshot) puts "===============" true end @@ -116,7 +116,7 @@ def save_failures_to_snapshot(content, source, options = {}) puts "\nUpdating Snapshot for '#{class_name} #{name}' at: \n#{snapshot_file(source, options)}\n" FileUtils.mkdir_p(snapshot_file(source, options).dirname) - snapshot_file(source, options).write(content) + snapshot_file(source, options).write(format_snapshot_with_metadata(content, source, options)) puts "\nSnapshot for '#{class_name} #{name}' written: \n#{snapshot_file(source, options)}\n" else @@ -128,13 +128,19 @@ def assert_snapshot_matches(actual, source, options = {}) assert snapshot_file(source, options).exist?, "Expected snapshot file to exist: \n#{snapshot_file(source, options).to_path}" - assert_equal snapshot_file(source, options).read, actual + expected_full_snapshot = snapshot_file(source, options).read + actual_full_snapshot = format_snapshot_with_metadata(actual, source, options) + + assert_equal expected_full_snapshot, actual_full_snapshot rescue Minitest::Assertion => e save_failures_to_snapshot(actual, source, options) if ENV["UPDATE_SNAPSHOTS"] || ENV["FORCE_UPDATE_SNAPSHOTS"] raise unless snapshot_file(source, options).exist? - if snapshot_file(source, options)&.read != actual + expected_full_snapshot = snapshot_file(source, options).read + actual_full_snapshot = format_snapshot_with_metadata(actual, source, options) + + if expected_full_snapshot != actual_full_snapshot puts divider = "=" * `tput cols`.strip.to_i @@ -142,7 +148,7 @@ def assert_snapshot_matches(actual, source, options = {}) flunk(<<~MESSAGE) \e[0m #{divider} - #{Difftastic::Differ.new(color: :always).diff_strings(snapshot_file(source, options).read, actual)} + #{Difftastic::Differ.new(color: :always).diff_strings(expected_full_snapshot, actual_full_snapshot)} \e[31m#{divider} Snapshots for "#{class_name} #{name}" didn't match. @@ -266,6 +272,42 @@ def compare_with_erubi_evaluated(source, herb_result, locals, options, enforce_e end end + def format_snapshot_with_metadata(content, source, options = {}) + metadata = build_snapshot_metadata(source, options) + + frontmatter = "---\n" + frontmatter += "source: #{metadata["source"].inspect}\n" + + # Use YAML literal block scalar for input (preserves formatting) + input_value = metadata["input"] + if input_value.include?("\n") + # Multiline: use |2- which means start content at column 0 (strip trailing newline) + frontmatter += "input: |2-\n" + frontmatter += input_value + # Ensure there's a newline after the multiline block + frontmatter += "\n" unless frontmatter.end_with?("\n") + else + # Single line: use regular quoted format + frontmatter += "input: #{input_value.inspect}\n" + end + + frontmatter += "options: #{metadata["options"].inspect}\n" if metadata["options"] + + frontmatter += "---\n" + + frontmatter + content + end + + def build_snapshot_metadata(source, options = {}) + metadata = { + "source" => "#{class_name}##{name}", + "input" => source.to_s, + } + + metadata["options"] = options unless options.empty? + metadata + end + private def sanitize_name_for_filesystem(name) diff --git a/test/snapshots/analyze/begin_test/test_0001_single-line_begin_8c71cb17a972281fb729047b56de5718.txt b/test/snapshots/analyze/begin_test/test_0001_single-line_begin_8c71cb17a972281fb729047b56de5718.txt index 67989928b..0ad3566d0 100644 --- a/test/snapshots/analyze/begin_test/test_0001_single-line_begin_8c71cb17a972281fb729047b56de5718.txt +++ b/test/snapshots/analyze/begin_test/test_0001_single-line_begin_8c71cb17a972281fb729047b56de5718.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::BeginTest#test_0001_single-line begin" +input: |2- +<% begin; end; %> +--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ ERBContentNode (location: (1:0)-(1:17)) diff --git a/test/snapshots/analyze/begin_test/test_0002_begin_statement_310fa78692cbba763c6e961782acf077.txt b/test/snapshots/analyze/begin_test/test_0002_begin_statement_310fa78692cbba763c6e961782acf077.txt index b79e6040f..9f1f74f59 100644 --- a/test/snapshots/analyze/begin_test/test_0002_begin_statement_310fa78692cbba763c6e961782acf077.txt +++ b/test/snapshots/analyze/begin_test/test_0002_begin_statement_310fa78692cbba763c6e961782acf077.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::BeginTest#test_0002_begin statement" +input: |2- +<% begin %> + begin +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBeginNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/begin_test/test_0003_begin_statement_wrapped_in_element_90dff6e715c904a974e86da2330e3795.txt b/test/snapshots/analyze/begin_test/test_0003_begin_statement_wrapped_in_element_90dff6e715c904a974e86da2330e3795.txt index 62defd9c1..fb6dd4e15 100644 --- a/test/snapshots/analyze/begin_test/test_0003_begin_statement_wrapped_in_element_90dff6e715c904a974e86da2330e3795.txt +++ b/test/snapshots/analyze/begin_test/test_0003_begin_statement_wrapped_in_element_90dff6e715c904a974e86da2330e3795.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::BeginTest#test_0003_begin statement wrapped in element" +input: |2- +

+ <% begin %> + begin + <% end %> +

+--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(5:5)) diff --git a/test/snapshots/analyze/begin_test/test_0004_begin_with_rescue_0abd830734a05969547e9b7f744deccd.txt b/test/snapshots/analyze/begin_test/test_0004_begin_with_rescue_0abd830734a05969547e9b7f744deccd.txt index cafbaec9d..41d012ad0 100644 --- a/test/snapshots/analyze/begin_test/test_0004_begin_with_rescue_0abd830734a05969547e9b7f744deccd.txt +++ b/test/snapshots/analyze/begin_test/test_0004_begin_with_rescue_0abd830734a05969547e9b7f744deccd.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::BeginTest#test_0004_begin with rescue" +input: |2- +<% begin %> + begin +<% rescue %> + rescue +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBBeginNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/begin_test/test_0005_begin_with_ensure_652af15ee9468a11e54d5661deb00e99.txt b/test/snapshots/analyze/begin_test/test_0005_begin_with_ensure_652af15ee9468a11e54d5661deb00e99.txt index 58ad1a07d..f923c7eef 100644 --- a/test/snapshots/analyze/begin_test/test_0005_begin_with_ensure_652af15ee9468a11e54d5661deb00e99.txt +++ b/test/snapshots/analyze/begin_test/test_0005_begin_with_ensure_652af15ee9468a11e54d5661deb00e99.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::BeginTest#test_0005_begin with ensure" +input: |2- +<% begin %> + begin +<% ensure %> + ensure +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBBeginNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/begin_test/test_0006_begin_with_else_85973b5966518a564209caa19c09f1e2.txt b/test/snapshots/analyze/begin_test/test_0006_begin_with_else_85973b5966518a564209caa19c09f1e2.txt index 97d5d4ce4..7e555211b 100644 --- a/test/snapshots/analyze/begin_test/test_0006_begin_with_else_85973b5966518a564209caa19c09f1e2.txt +++ b/test/snapshots/analyze/begin_test/test_0006_begin_with_else_85973b5966518a564209caa19c09f1e2.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::BeginTest#test_0006_begin with else" +input: |2- +<% begin %> + begin +<% else %> + else +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) ├── errors: (1 error) │ └── @ RubyParseError (location: (3:3)-(5:6)) diff --git a/test/snapshots/analyze/begin_test/test_0007_begin_with_rescue_and_else_5ff2a3e329235a33a89faff9c8647173.txt b/test/snapshots/analyze/begin_test/test_0007_begin_with_rescue_and_else_5ff2a3e329235a33a89faff9c8647173.txt index 355551e9b..1fd7a3f95 100644 --- a/test/snapshots/analyze/begin_test/test_0007_begin_with_rescue_and_else_5ff2a3e329235a33a89faff9c8647173.txt +++ b/test/snapshots/analyze/begin_test/test_0007_begin_with_rescue_and_else_5ff2a3e329235a33a89faff9c8647173.txt @@ -1,3 +1,14 @@ +--- +source: "Analyze::BeginTest#test_0007_begin with rescue and else" +input: |2- +<% begin %> + begin +<% rescue %> + rescue +<% else %> + else +<% end %> +--- @ DocumentNode (location: (1:0)-(8:0)) └── children: (2 items) ├── @ ERBBeginNode (location: (1:0)-(7:9)) diff --git a/test/snapshots/analyze/begin_test/test_0008_begin_with_rescue_and_ensure_97df51331597aef274a1e1a6d1fa05ab.txt b/test/snapshots/analyze/begin_test/test_0008_begin_with_rescue_and_ensure_97df51331597aef274a1e1a6d1fa05ab.txt index 2a9ee1a3b..407851918 100644 --- a/test/snapshots/analyze/begin_test/test_0008_begin_with_rescue_and_ensure_97df51331597aef274a1e1a6d1fa05ab.txt +++ b/test/snapshots/analyze/begin_test/test_0008_begin_with_rescue_and_ensure_97df51331597aef274a1e1a6d1fa05ab.txt @@ -1,3 +1,14 @@ +--- +source: "Analyze::BeginTest#test_0008_begin with rescue and ensure" +input: |2- +<% begin %> + begin +<% rescue %> + rescue +<% ensure %> + ensure +<% end %> +--- @ DocumentNode (location: (1:0)-(8:0)) └── children: (2 items) ├── @ ERBBeginNode (location: (1:0)-(7:9)) diff --git a/test/snapshots/analyze/begin_test/test_0009_begin_with_multiple_rescues_b391d083604ab993f87d7b5f7da784de.txt b/test/snapshots/analyze/begin_test/test_0009_begin_with_multiple_rescues_b391d083604ab993f87d7b5f7da784de.txt index 467b10de1..a08b7d163 100644 --- a/test/snapshots/analyze/begin_test/test_0009_begin_with_multiple_rescues_b391d083604ab993f87d7b5f7da784de.txt +++ b/test/snapshots/analyze/begin_test/test_0009_begin_with_multiple_rescues_b391d083604ab993f87d7b5f7da784de.txt @@ -1,3 +1,16 @@ +--- +source: "Analyze::BeginTest#test_0009_begin with multiple rescues" +input: |2- +<% begin %> + begin +<% rescue StandardError %> + StandardError +<% rescue ArgumentError %> + ArgumentError +<% else %> + else +<% end %> +--- @ DocumentNode (location: (1:0)-(10:0)) └── children: (2 items) ├── @ ERBBeginNode (location: (1:0)-(9:9)) diff --git a/test/snapshots/analyze/begin_test/test_0010_begin_with_rescue,_ensure,_and_else_7e05a59142cd6be0bdc4a05fbe46ca11.txt b/test/snapshots/analyze/begin_test/test_0010_begin_with_rescue,_ensure,_and_else_7e05a59142cd6be0bdc4a05fbe46ca11.txt index 703f217d1..39b6fd851 100644 --- a/test/snapshots/analyze/begin_test/test_0010_begin_with_rescue,_ensure,_and_else_7e05a59142cd6be0bdc4a05fbe46ca11.txt +++ b/test/snapshots/analyze/begin_test/test_0010_begin_with_rescue,_ensure,_and_else_7e05a59142cd6be0bdc4a05fbe46ca11.txt @@ -1,3 +1,16 @@ +--- +source: "Analyze::BeginTest#test_0010_begin with rescue, ensure, and else" +input: |2- +<% begin %> + begin +<% rescue %> + rescue +<% else %> + else +<% ensure %> + ensure +<% end %> +--- @ DocumentNode (location: (1:0)-(10:0)) └── children: (2 items) ├── @ ERBBeginNode (location: (1:0)-(9:9)) diff --git a/test/snapshots/analyze/begin_test/test_0011_nested_begin_statements_df42b2e75ecfbebde2efc7179c9a6a88.txt b/test/snapshots/analyze/begin_test/test_0011_nested_begin_statements_df42b2e75ecfbebde2efc7179c9a6a88.txt index 2e8c1d0ea..d9392bf12 100644 --- a/test/snapshots/analyze/begin_test/test_0011_nested_begin_statements_df42b2e75ecfbebde2efc7179c9a6a88.txt +++ b/test/snapshots/analyze/begin_test/test_0011_nested_begin_statements_df42b2e75ecfbebde2efc7179c9a6a88.txt @@ -1,3 +1,14 @@ +--- +source: "Analyze::BeginTest#test_0011_nested begin statements" +input: |2- +<% begin %> + Level 1 + + <% begin %> + Level 2 + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(8:0)) └── children: (2 items) ├── @ ERBBeginNode (location: (1:0)-(7:9)) diff --git a/test/snapshots/analyze/block_test/test_0001_single_line_block_6e95c5888a720e157b1e6ec923700b92.txt b/test/snapshots/analyze/block_test/test_0001_single_line_block_6e95c5888a720e157b1e6ec923700b92.txt index d36ebb751..74229f261 100644 --- a/test/snapshots/analyze/block_test/test_0001_single_line_block_6e95c5888a720e157b1e6ec923700b92.txt +++ b/test/snapshots/analyze/block_test/test_0001_single_line_block_6e95c5888a720e157b1e6ec923700b92.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::BlockTest#test_0001_single line block" +input: |2- +<% numbers.map { |number| number * 2 } %> +--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ ERBContentNode (location: (1:0)-(1:41)) diff --git a/test/snapshots/analyze/block_test/test_0002_block_bb47a5f1953b6af8f63923f01e574d97.txt b/test/snapshots/analyze/block_test/test_0002_block_bb47a5f1953b6af8f63923f01e574d97.txt index 194db87f2..74f2784ed 100644 --- a/test/snapshots/analyze/block_test/test_0002_block_bb47a5f1953b6af8f63923f01e574d97.txt +++ b/test/snapshots/analyze/block_test/test_0002_block_bb47a5f1953b6af8f63923f01e574d97.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::BlockTest#test_0002_block" +input: |2- +<% block do %> + Content +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/block_test/test_0003_block_with_curlies_1f0aa977e8f63e43e55f5c51eeb809c6.txt b/test/snapshots/analyze/block_test/test_0003_block_with_curlies_1f0aa977e8f63e43e55f5c51eeb809c6.txt index 8e518f936..2880dec1f 100644 --- a/test/snapshots/analyze/block_test/test_0003_block_with_curlies_1f0aa977e8f63e43e55f5c51eeb809c6.txt +++ b/test/snapshots/analyze/block_test/test_0003_block_with_curlies_1f0aa977e8f63e43e55f5c51eeb809c6.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::BlockTest#test_0003_block with curlies" +input: |2- +<% block { %> + Content +<% } %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:7)) diff --git a/test/snapshots/analyze/block_test/test_0004_block_wrapped_in_element_39a5ad73c7d101fb93261a1168948d5b.txt b/test/snapshots/analyze/block_test/test_0004_block_wrapped_in_element_39a5ad73c7d101fb93261a1168948d5b.txt index cb708f902..b14fe54bc 100644 --- a/test/snapshots/analyze/block_test/test_0004_block_wrapped_in_element_39a5ad73c7d101fb93261a1168948d5b.txt +++ b/test/snapshots/analyze/block_test/test_0004_block_wrapped_in_element_39a5ad73c7d101fb93261a1168948d5b.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::BlockTest#test_0004_block wrapped in element" +input: |2- +

+ <% block do %> + Content + <% end %> +

+--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(5:5)) diff --git a/test/snapshots/analyze/block_test/test_0005_each_block_12aad82c1dcc0c44ce4506dbdac4fbd5.txt b/test/snapshots/analyze/block_test/test_0005_each_block_12aad82c1dcc0c44ce4506dbdac4fbd5.txt index da9349587..ea60d7854 100644 --- a/test/snapshots/analyze/block_test/test_0005_each_block_12aad82c1dcc0c44ce4506dbdac4fbd5.txt +++ b/test/snapshots/analyze/block_test/test_0005_each_block_12aad82c1dcc0c44ce4506dbdac4fbd5.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::BlockTest#test_0005_each block" +input: |2- +<% [1, 2, 3].each do |item| %> + <%= item %> +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/block_test/test_0006_each_with_index_block_203756003c6f59594914718691890834.txt b/test/snapshots/analyze/block_test/test_0006_each_with_index_block_203756003c6f59594914718691890834.txt index f90ce647d..17b17ee50 100644 --- a/test/snapshots/analyze/block_test/test_0006_each_with_index_block_203756003c6f59594914718691890834.txt +++ b/test/snapshots/analyze/block_test/test_0006_each_with_index_block_203756003c6f59594914718691890834.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::BlockTest#test_0006_each_with_index block" +input: |2- +<% [1, 2, 3].each_with_index do |item, index| %> + <%= item %> + <%= index %> +<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(4:9)) diff --git a/test/snapshots/analyze/block_test/test_0007_times_block_1533a1664dd8eebdaa2ebe88f35f1316.txt b/test/snapshots/analyze/block_test/test_0007_times_block_1533a1664dd8eebdaa2ebe88f35f1316.txt index a708e56dc..7adfcd355 100644 --- a/test/snapshots/analyze/block_test/test_0007_times_block_1533a1664dd8eebdaa2ebe88f35f1316.txt +++ b/test/snapshots/analyze/block_test/test_0007_times_block_1533a1664dd8eebdaa2ebe88f35f1316.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::BlockTest#test_0007_times block" +input: |2- +<% 5.times do |i| %> + <%= i %> +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/block_test/test_0008_upto_block_8163697cb75c2f0c085bbbbc587fe892.txt b/test/snapshots/analyze/block_test/test_0008_upto_block_8163697cb75c2f0c085bbbbc587fe892.txt index 40df6e665..54c8bc532 100644 --- a/test/snapshots/analyze/block_test/test_0008_upto_block_8163697cb75c2f0c085bbbbc587fe892.txt +++ b/test/snapshots/analyze/block_test/test_0008_upto_block_8163697cb75c2f0c085bbbbc587fe892.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::BlockTest#test_0008_upto block" +input: |2- +<% 1.upto(5) do |i| %> + <%= i %> +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/block_test/test_0009_step_block_46c8130e027d324f1bc60a66ac2fd9d9.txt b/test/snapshots/analyze/block_test/test_0009_step_block_46c8130e027d324f1bc60a66ac2fd9d9.txt index c912ba576..570612cf2 100644 --- a/test/snapshots/analyze/block_test/test_0009_step_block_46c8130e027d324f1bc60a66ac2fd9d9.txt +++ b/test/snapshots/analyze/block_test/test_0009_step_block_46c8130e027d324f1bc60a66ac2fd9d9.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::BlockTest#test_0009_step block" +input: |2- +<% 1.step(5, 2) do |i| %> + <%= i %> +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/block_test/test_0010_loop_block_b6292ce38564be66a47b39c7cd7c0154.txt b/test/snapshots/analyze/block_test/test_0010_loop_block_b6292ce38564be66a47b39c7cd7c0154.txt index dac3569f0..12d8e8256 100644 --- a/test/snapshots/analyze/block_test/test_0010_loop_block_b6292ce38564be66a47b39c7cd7c0154.txt +++ b/test/snapshots/analyze/block_test/test_0010_loop_block_b6292ce38564be66a47b39c7cd7c0154.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::BlockTest#test_0010_loop block" +input: |2- +<% loop do %> + loop +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/block_test/test_0011_nested_blocks_5c1db84edbee554e4c974962dd664115.txt b/test/snapshots/analyze/block_test/test_0011_nested_blocks_5c1db84edbee554e4c974962dd664115.txt index 6e32c2b66..4aeb986be 100644 --- a/test/snapshots/analyze/block_test/test_0011_nested_blocks_5c1db84edbee554e4c974962dd664115.txt +++ b/test/snapshots/analyze/block_test/test_0011_nested_blocks_5c1db84edbee554e4c974962dd664115.txt @@ -1,3 +1,14 @@ +--- +source: "Analyze::BlockTest#test_0011_nested blocks" +input: |2- +<% block do %> + Level 1 + + <% block do %> + Level 2 + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(8:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(7:9)) diff --git a/test/snapshots/analyze/block_test/test_0012_output_block_with_nested_if_in_arguments_6e476a363d4ba2c11b5a7880f29eb97e.txt b/test/snapshots/analyze/block_test/test_0012_output_block_with_nested_if_in_arguments_6e476a363d4ba2c11b5a7880f29eb97e.txt index 75c480e76..5e4d2ea67 100644 --- a/test/snapshots/analyze/block_test/test_0012_output_block_with_nested_if_in_arguments_6e476a363d4ba2c11b5a7880f29eb97e.txt +++ b/test/snapshots/analyze/block_test/test_0012_output_block_with_nested_if_in_arguments_6e476a363d4ba2c11b5a7880f29eb97e.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::BlockTest#test_0012_output block with nested if in arguments" +input: |2- +<%= link_to(some_url, class: ("some-class" if some_condition)) do %> + Click me +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/block_test/test_0013_output_block_with_complex_nested_if_in_arguments_ce77a6b79077c840b8e3757d685241db.txt b/test/snapshots/analyze/block_test/test_0013_output_block_with_complex_nested_if_in_arguments_ce77a6b79077c840b8e3757d685241db.txt index cebdd2af8..82e3defe5 100644 --- a/test/snapshots/analyze/block_test/test_0013_output_block_with_complex_nested_if_in_arguments_ce77a6b79077c840b8e3757d685241db.txt +++ b/test/snapshots/analyze/block_test/test_0013_output_block_with_complex_nested_if_in_arguments_ce77a6b79077c840b8e3757d685241db.txt @@ -1,3 +1,20 @@ +--- +source: "Analyze::BlockTest#test_0013_output block with complex nested if in arguments" +input: |2- +<%= form_builder.fieldset( + "foo", + :foo, + required: true, + hint: + if some_condition? + "foo" + else + "bar" + end +) do %> + <%# ... %> +<% end %> +--- @ DocumentNode (location: (1:0)-(14:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(13:9)) diff --git a/test/snapshots/analyze/block_test/test_0014_output_block_with_ternary_in_arguments_fd95ec37953c2bfabb5e6c134048e826.txt b/test/snapshots/analyze/block_test/test_0014_output_block_with_ternary_in_arguments_fd95ec37953c2bfabb5e6c134048e826.txt index 7e4976f14..6972b04cd 100644 --- a/test/snapshots/analyze/block_test/test_0014_output_block_with_ternary_in_arguments_fd95ec37953c2bfabb5e6c134048e826.txt +++ b/test/snapshots/analyze/block_test/test_0014_output_block_with_ternary_in_arguments_fd95ec37953c2bfabb5e6c134048e826.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::BlockTest#test_0014_output block with ternary in arguments" +input: |2- +<%= button_to(path, class: active? ? "active" : "inactive") do %> + Button text +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/block_test/test_0015_non-output_block_with_nested_if_in_arguments_03b142f7bfa9e9b1adfd3d1ce93f664c.txt b/test/snapshots/analyze/block_test/test_0015_non-output_block_with_nested_if_in_arguments_03b142f7bfa9e9b1adfd3d1ce93f664c.txt index b4233fc74..f2431ab7b 100644 --- a/test/snapshots/analyze/block_test/test_0015_non-output_block_with_nested_if_in_arguments_03b142f7bfa9e9b1adfd3d1ce93f664c.txt +++ b/test/snapshots/analyze/block_test/test_0015_non-output_block_with_nested_if_in_arguments_03b142f7bfa9e9b1adfd3d1ce93f664c.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::BlockTest#test_0015_non-output block with nested if in arguments" +input: |2- +<% link_to(some_url, class: ("some-class" if some_condition)) do %> + Click me +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/block_test/test_0016_block_with_multiple_nested_control_structures_6ef4d5a78134131b297c942bf88a2f27.txt b/test/snapshots/analyze/block_test/test_0016_block_with_multiple_nested_control_structures_6ef4d5a78134131b297c942bf88a2f27.txt index 41219c5c0..daf0e5b18 100644 --- a/test/snapshots/analyze/block_test/test_0016_block_with_multiple_nested_control_structures_6ef4d5a78134131b297c942bf88a2f27.txt +++ b/test/snapshots/analyze/block_test/test_0016_block_with_multiple_nested_control_structures_6ef4d5a78134131b297c942bf88a2f27.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::BlockTest#test_0016_block with multiple nested control structures" +input: |2- +<%= items.select { |item| item.valid? }.map do |item| %> +
+ <%= item.name %> +
+<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/block_test/test_0017_output_block_with_nested_if_and_empty_body_e7620bceca76d49a706d7ed00e44c573.txt b/test/snapshots/analyze/block_test/test_0017_output_block_with_nested_if_and_empty_body_e7620bceca76d49a706d7ed00e44c573.txt index 470be5d01..9fb49e037 100644 --- a/test/snapshots/analyze/block_test/test_0017_output_block_with_nested_if_and_empty_body_e7620bceca76d49a706d7ed00e44c573.txt +++ b/test/snapshots/analyze/block_test/test_0017_output_block_with_nested_if_and_empty_body_e7620bceca76d49a706d7ed00e44c573.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::BlockTest#test_0017_output block with nested if and empty body" +input: |2- +<%= link_to(some_url, class: ("some-class" if some_condition)) do %> + +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/block_test/test_0018_yield_with_conditional_expression_aab87ed84223dc1a927240b2859b3c05.txt b/test/snapshots/analyze/block_test/test_0018_yield_with_conditional_expression_aab87ed84223dc1a927240b2859b3c05.txt index 1a7e74555..954a524ac 100644 --- a/test/snapshots/analyze/block_test/test_0018_yield_with_conditional_expression_aab87ed84223dc1a927240b2859b3c05.txt +++ b/test/snapshots/analyze/block_test/test_0018_yield_with_conditional_expression_aab87ed84223dc1a927240b2859b3c05.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::BlockTest#test_0018_yield with conditional expression" +input: |2- +<%= yield(:header) if content_for?(:header) %> +--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ ERBYieldNode (location: (1:0)-(1:46)) diff --git a/test/snapshots/analyze/case_in_test/test_0001_case_in_statement_894c684a7c2d0c6e8fe725ed9e413c27.txt b/test/snapshots/analyze/case_in_test/test_0001_case_in_statement_894c684a7c2d0c6e8fe725ed9e413c27.txt index 28da8a7d4..9172a886d 100644 --- a/test/snapshots/analyze/case_in_test/test_0001_case_in_statement_894c684a7c2d0c6e8fe725ed9e413c27.txt +++ b/test/snapshots/analyze/case_in_test/test_0001_case_in_statement_894c684a7c2d0c6e8fe725ed9e413c27.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::CaseInTest#test_0001_case in statement" +input: |2- +<% case variable %> +<% in [Integer] %> + Integer +<% else %> + else +<% end %> +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ ERBCaseMatchNode (location: (1:0)-(6:9)) diff --git a/test/snapshots/analyze/case_in_test/test_0002_case_in_statement_with_multiple_in_a2c476da06ea1cf6477de09d267c225d.txt b/test/snapshots/analyze/case_in_test/test_0002_case_in_statement_with_multiple_in_a2c476da06ea1cf6477de09d267c225d.txt index f2e006da7..dc43de3d9 100644 --- a/test/snapshots/analyze/case_in_test/test_0002_case_in_statement_with_multiple_in_a2c476da06ea1cf6477de09d267c225d.txt +++ b/test/snapshots/analyze/case_in_test/test_0002_case_in_statement_with_multiple_in_a2c476da06ea1cf6477de09d267c225d.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::CaseInTest#test_0002_case in statement with multiple in" +input: |2- +<% case variable %> +<% in [String] %> + String +<% in [Integer] %> + Integer +<% end %> +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ ERBCaseMatchNode (location: (1:0)-(6:9)) diff --git a/test/snapshots/analyze/case_in_test/test_0003_case_in_statement_with_else_627b23a581abbe9abf0dfe9014d759d7.txt b/test/snapshots/analyze/case_in_test/test_0003_case_in_statement_with_else_627b23a581abbe9abf0dfe9014d759d7.txt index a4b697997..7ac149d07 100644 --- a/test/snapshots/analyze/case_in_test/test_0003_case_in_statement_with_else_627b23a581abbe9abf0dfe9014d759d7.txt +++ b/test/snapshots/analyze/case_in_test/test_0003_case_in_statement_with_else_627b23a581abbe9abf0dfe9014d759d7.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::CaseInTest#test_0003_case in statement with else" +input: |2- +<% case variable %> +<% in [String] %> + String +<% else %> + else +<% end %> +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ ERBCaseMatchNode (location: (1:0)-(6:9)) diff --git a/test/snapshots/analyze/case_in_test/test_0004_case_in_statement_with_multiple_in_and_else_db516a41f10230a12864d988e29f289e.txt b/test/snapshots/analyze/case_in_test/test_0004_case_in_statement_with_multiple_in_and_else_db516a41f10230a12864d988e29f289e.txt index 63c976ac2..efa422b07 100644 --- a/test/snapshots/analyze/case_in_test/test_0004_case_in_statement_with_multiple_in_and_else_db516a41f10230a12864d988e29f289e.txt +++ b/test/snapshots/analyze/case_in_test/test_0004_case_in_statement_with_multiple_in_and_else_db516a41f10230a12864d988e29f289e.txt @@ -1,3 +1,15 @@ +--- +source: "Analyze::CaseInTest#test_0004_case in statement with multiple in and else" +input: |2- +<% case variable %> +<% in [String] %> + String +<% in [Integer] %> + Integer +<% else %> + else +<% end %> +--- @ DocumentNode (location: (1:0)-(9:0)) └── children: (2 items) ├── @ ERBCaseMatchNode (location: (1:0)-(8:9)) diff --git a/test/snapshots/analyze/case_in_test/test_0005_case_in_statement_wrapped_in_element_61e488dd472b63b98202b2d0e83c9610.txt b/test/snapshots/analyze/case_in_test/test_0005_case_in_statement_wrapped_in_element_61e488dd472b63b98202b2d0e83c9610.txt index e9285125d..e89c490ca 100644 --- a/test/snapshots/analyze/case_in_test/test_0005_case_in_statement_wrapped_in_element_61e488dd472b63b98202b2d0e83c9610.txt +++ b/test/snapshots/analyze/case_in_test/test_0005_case_in_statement_wrapped_in_element_61e488dd472b63b98202b2d0e83c9610.txt @@ -1,3 +1,17 @@ +--- +source: "Analyze::CaseInTest#test_0005_case in statement wrapped in element" +input: |2- +

+ <% case variable %> + <% in [String] %> + String + <% in [Integer] %> + Integer + <% else %> + else + <% end %> +

+--- @ DocumentNode (location: (1:0)-(11:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(10:5)) diff --git a/test/snapshots/analyze/case_in_test/test_0007_case_in_with_children_before_first_in_48daaea0cd005bda78c99588a3d1fea2.txt b/test/snapshots/analyze/case_in_test/test_0007_case_in_with_children_before_first_in_48daaea0cd005bda78c99588a3d1fea2.txt index c8bcc0110..1b946dea9 100644 --- a/test/snapshots/analyze/case_in_test/test_0007_case_in_with_children_before_first_in_48daaea0cd005bda78c99588a3d1fea2.txt +++ b/test/snapshots/analyze/case_in_test/test_0007_case_in_with_children_before_first_in_48daaea0cd005bda78c99588a3d1fea2.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::CaseInTest#test_0007_case in with children before first in" +input: |2- +<% case variable %> + before in +<% in [String] %> + String +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBCaseMatchNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/case_in_test/test_0008_case_in_with_block_inside_in_clause_a5d7393ef0ab780cd777fd4d09413ac8.txt b/test/snapshots/analyze/case_in_test/test_0008_case_in_with_block_inside_in_clause_a5d7393ef0ab780cd777fd4d09413ac8.txt index c29867eb1..c7fe2ecf9 100644 --- a/test/snapshots/analyze/case_in_test/test_0008_case_in_with_block_inside_in_clause_a5d7393ef0ab780cd777fd4d09413ac8.txt +++ b/test/snapshots/analyze/case_in_test/test_0008_case_in_with_block_inside_in_clause_a5d7393ef0ab780cd777fd4d09413ac8.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::CaseInTest#test_0008_case in with block inside in clause" +input: |2- +<% case result %> +<% in { status: :success } %> + <%= content_tag(:div) do %> + Success! + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ ERBCaseMatchNode (location: (1:0)-(6:9)) diff --git a/test/snapshots/analyze/case_in_test/test_0009_case_in_with_multiple_blocks_in_in_clause_8cdfe954fcb68cf29f71d5c05893547c.txt b/test/snapshots/analyze/case_in_test/test_0009_case_in_with_multiple_blocks_in_in_clause_8cdfe954fcb68cf29f71d5c05893547c.txt index 15df4180f..3bac9d007 100644 --- a/test/snapshots/analyze/case_in_test/test_0009_case_in_with_multiple_blocks_in_in_clause_8cdfe954fcb68cf29f71d5c05893547c.txt +++ b/test/snapshots/analyze/case_in_test/test_0009_case_in_with_multiple_blocks_in_in_clause_8cdfe954fcb68cf29f71d5c05893547c.txt @@ -1,3 +1,16 @@ +--- +source: "Analyze::CaseInTest#test_0009_case in with multiple blocks in in clause" +input: |2- +<% case data %> +<% in { type: :alert } %> + <%= content_tag(:div) do %> + Alert + <% end %> + <%= content_tag(:span) do %> + Icon + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(10:0)) └── children: (2 items) ├── @ ERBCaseMatchNode (location: (1:0)-(9:9)) diff --git a/test/snapshots/analyze/case_in_test/test_0010_case_in_with_if_statement_inside_in_clause_51fcf7566215a5284ae1ee34c920837e.txt b/test/snapshots/analyze/case_in_test/test_0010_case_in_with_if_statement_inside_in_clause_51fcf7566215a5284ae1ee34c920837e.txt index 5acba3aa5..2b3678df9 100644 --- a/test/snapshots/analyze/case_in_test/test_0010_case_in_with_if_statement_inside_in_clause_51fcf7566215a5284ae1ee34c920837e.txt +++ b/test/snapshots/analyze/case_in_test/test_0010_case_in_with_if_statement_inside_in_clause_51fcf7566215a5284ae1ee34c920837e.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::CaseInTest#test_0010_case in with if statement inside in clause" +input: |2- +<% case value %> +<% in [Integer] %> + <% if positive? %> + Positive + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ ERBCaseMatchNode (location: (1:0)-(6:9)) diff --git a/test/snapshots/analyze/case_test/test_0001_case_statement_29ef35b6c9d10898aadb09e127bb39ca.txt b/test/snapshots/analyze/case_test/test_0001_case_statement_29ef35b6c9d10898aadb09e127bb39ca.txt index 7a20d2f39..af3ccf38a 100644 --- a/test/snapshots/analyze/case_test/test_0001_case_statement_29ef35b6c9d10898aadb09e127bb39ca.txt +++ b/test/snapshots/analyze/case_test/test_0001_case_statement_29ef35b6c9d10898aadb09e127bb39ca.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::CaseTest#test_0001_case statement" +input: |2- +<% case variable %> +<% when String %> + String +<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (2 items) ├── @ ERBCaseNode (location: (1:0)-(4:9)) diff --git a/test/snapshots/analyze/case_test/test_0002_case_statement_with_multiple_when_9e60754ef4d0f4e9601d4c74134c594d.txt b/test/snapshots/analyze/case_test/test_0002_case_statement_with_multiple_when_9e60754ef4d0f4e9601d4c74134c594d.txt index 1a8aa0e93..dbdb753d5 100644 --- a/test/snapshots/analyze/case_test/test_0002_case_statement_with_multiple_when_9e60754ef4d0f4e9601d4c74134c594d.txt +++ b/test/snapshots/analyze/case_test/test_0002_case_statement_with_multiple_when_9e60754ef4d0f4e9601d4c74134c594d.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::CaseTest#test_0002_case statement with multiple when" +input: |2- +<% case variable %> +<% when String %> + String +<% when Integer %> + Integer +<% end %> +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ ERBCaseNode (location: (1:0)-(6:9)) diff --git a/test/snapshots/analyze/case_test/test_0003_case_statement_with_else_9707b40dd4e4f86f58c2dcd952525f80.txt b/test/snapshots/analyze/case_test/test_0003_case_statement_with_else_9707b40dd4e4f86f58c2dcd952525f80.txt index 325744122..bd7e19345 100644 --- a/test/snapshots/analyze/case_test/test_0003_case_statement_with_else_9707b40dd4e4f86f58c2dcd952525f80.txt +++ b/test/snapshots/analyze/case_test/test_0003_case_statement_with_else_9707b40dd4e4f86f58c2dcd952525f80.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::CaseTest#test_0003_case statement with else" +input: |2- +<% case variable %> +<% when String %> + String +<% else %> + else +<% end %> +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ ERBCaseNode (location: (1:0)-(6:9)) diff --git a/test/snapshots/analyze/case_test/test_0004_case_statement_with_multiple_when_and_else_6ecf2eb1af1609c6f998834e6454ce75.txt b/test/snapshots/analyze/case_test/test_0004_case_statement_with_multiple_when_and_else_6ecf2eb1af1609c6f998834e6454ce75.txt index 0de572405..a1e07c121 100644 --- a/test/snapshots/analyze/case_test/test_0004_case_statement_with_multiple_when_and_else_6ecf2eb1af1609c6f998834e6454ce75.txt +++ b/test/snapshots/analyze/case_test/test_0004_case_statement_with_multiple_when_and_else_6ecf2eb1af1609c6f998834e6454ce75.txt @@ -1,3 +1,15 @@ +--- +source: "Analyze::CaseTest#test_0004_case statement with multiple when and else" +input: |2- +<% case variable %> +<% when String %> + String +<% when Integer %> + Integer +<% else %> + else +<% end %> +--- @ DocumentNode (location: (1:0)-(9:0)) └── children: (2 items) ├── @ ERBCaseNode (location: (1:0)-(8:9)) diff --git a/test/snapshots/analyze/case_test/test_0005_case_statement_wrapped_in_element_8c0bd39fa334273e82d5abc8a735d433.txt b/test/snapshots/analyze/case_test/test_0005_case_statement_wrapped_in_element_8c0bd39fa334273e82d5abc8a735d433.txt index 37e7aac92..4fd2687ac 100644 --- a/test/snapshots/analyze/case_test/test_0005_case_statement_wrapped_in_element_8c0bd39fa334273e82d5abc8a735d433.txt +++ b/test/snapshots/analyze/case_test/test_0005_case_statement_wrapped_in_element_8c0bd39fa334273e82d5abc8a735d433.txt @@ -1,3 +1,17 @@ +--- +source: "Analyze::CaseTest#test_0005_case statement wrapped in element" +input: |2- +

+ <% case variable %> + <% when String %> + String + <% when Integer %> + Integer + <% else %> + else + <% end %> +

+--- @ DocumentNode (location: (1:0)-(11:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(10:5)) diff --git a/test/snapshots/analyze/case_test/test_0007_case_with_children_before_first_when_f236195655edf63829effb2806e34ce0.txt b/test/snapshots/analyze/case_test/test_0007_case_with_children_before_first_when_f236195655edf63829effb2806e34ce0.txt index bb5e06e38..e6f439737 100644 --- a/test/snapshots/analyze/case_test/test_0007_case_with_children_before_first_when_f236195655edf63829effb2806e34ce0.txt +++ b/test/snapshots/analyze/case_test/test_0007_case_with_children_before_first_when_f236195655edf63829effb2806e34ce0.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::CaseTest#test_0007_case with children before first when" +input: |2- +<% case variable %> + before when +<% when String %> + String +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBCaseNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/case_test/test_0008_case_with_block_inside_when_adb20c2773fe1206d2b47123f8001e22.txt b/test/snapshots/analyze/case_test/test_0008_case_with_block_inside_when_adb20c2773fe1206d2b47123f8001e22.txt index e2e329787..fa2ffba24 100644 --- a/test/snapshots/analyze/case_test/test_0008_case_with_block_inside_when_adb20c2773fe1206d2b47123f8001e22.txt +++ b/test/snapshots/analyze/case_test/test_0008_case_with_block_inside_when_adb20c2773fe1206d2b47123f8001e22.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::CaseTest#test_0008_case with block inside when" +input: |2- +<% case 1 %> +<% when 1 %> + <%= content_tag(:p) do %> + Yep + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ ERBCaseNode (location: (1:0)-(6:9)) diff --git a/test/snapshots/analyze/case_test/test_0009_case_with_multiple_blocks_in_when_05f7d387314a95620a58ddc7f7d31b7b.txt b/test/snapshots/analyze/case_test/test_0009_case_with_multiple_blocks_in_when_05f7d387314a95620a58ddc7f7d31b7b.txt index ff5e466ab..11fc83373 100644 --- a/test/snapshots/analyze/case_test/test_0009_case_with_multiple_blocks_in_when_05f7d387314a95620a58ddc7f7d31b7b.txt +++ b/test/snapshots/analyze/case_test/test_0009_case_with_multiple_blocks_in_when_05f7d387314a95620a58ddc7f7d31b7b.txt @@ -1,3 +1,16 @@ +--- +source: "Analyze::CaseTest#test_0009_case with multiple blocks in when" +input: |2- +<% case status %> +<% when :active %> + <%= content_tag(:div) do %> + Active + <% end %> + <%= content_tag(:span) do %> + Badge + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(10:0)) └── children: (2 items) ├── @ ERBCaseNode (location: (1:0)-(9:9)) diff --git a/test/snapshots/analyze/case_test/test_0010_case_with_nested_blocks_in_when_6e70c1bf60788969969296d35c409a47.txt b/test/snapshots/analyze/case_test/test_0010_case_with_nested_blocks_in_when_6e70c1bf60788969969296d35c409a47.txt index 857244cb8..662ecb13f 100644 --- a/test/snapshots/analyze/case_test/test_0010_case_with_nested_blocks_in_when_6e70c1bf60788969969296d35c409a47.txt +++ b/test/snapshots/analyze/case_test/test_0010_case_with_nested_blocks_in_when_6e70c1bf60788969969296d35c409a47.txt @@ -1,3 +1,15 @@ +--- +source: "Analyze::CaseTest#test_0010_case with nested blocks in when" +input: |2- +<% case level %> +<% when 1 %> + <%= content_tag(:div) do %> + <%= content_tag(:p) do %> + Nested + <% end %> + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(9:0)) └── children: (2 items) ├── @ ERBCaseNode (location: (1:0)-(8:9)) diff --git a/test/snapshots/analyze/case_test/test_0011_case_with_block_in_multiple_when_clauses_3f35d3ebf6ea6eaf8e7b9bc7f8393a0f.txt b/test/snapshots/analyze/case_test/test_0011_case_with_block_in_multiple_when_clauses_3f35d3ebf6ea6eaf8e7b9bc7f8393a0f.txt index 818e209a5..11844c1fc 100644 --- a/test/snapshots/analyze/case_test/test_0011_case_with_block_in_multiple_when_clauses_3f35d3ebf6ea6eaf8e7b9bc7f8393a0f.txt +++ b/test/snapshots/analyze/case_test/test_0011_case_with_block_in_multiple_when_clauses_3f35d3ebf6ea6eaf8e7b9bc7f8393a0f.txt @@ -1,3 +1,17 @@ +--- +source: "Analyze::CaseTest#test_0011_case with block in multiple when clauses" +input: |2- +<% case type %> +<% when :a %> + <%= form_for(obj) do |f| %> + Form A + <% end %> +<% when :b %> + <%= form_for(obj) do |f| %> + Form B + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(11:0)) └── children: (2 items) ├── @ ERBCaseNode (location: (1:0)-(10:9)) diff --git a/test/snapshots/analyze/case_test/test_0012_case_with_if_statement_inside_when_ccc0bd511203c41d9274ccc360e736c2.txt b/test/snapshots/analyze/case_test/test_0012_case_with_if_statement_inside_when_ccc0bd511203c41d9274ccc360e736c2.txt index 5cef31f1d..ddd70eb0e 100644 --- a/test/snapshots/analyze/case_test/test_0012_case_with_if_statement_inside_when_ccc0bd511203c41d9274ccc360e736c2.txt +++ b/test/snapshots/analyze/case_test/test_0012_case_with_if_statement_inside_when_ccc0bd511203c41d9274ccc360e736c2.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::CaseTest#test_0012_case with if statement inside when" +input: |2- +<% case status %> +<% when :active %> + <% if admin? %> + Admin view + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ ERBCaseNode (location: (1:0)-(6:9)) diff --git a/test/snapshots/analyze/case_test/test_0013_case_with_yield_dc59b65969b8ef95076abc05c3907392.txt b/test/snapshots/analyze/case_test/test_0013_case_with_yield_dc59b65969b8ef95076abc05c3907392.txt index 1a4e6654e..8f3cdcd8d 100644 --- a/test/snapshots/analyze/case_test/test_0013_case_with_yield_dc59b65969b8ef95076abc05c3907392.txt +++ b/test/snapshots/analyze/case_test/test_0013_case_with_yield_dc59b65969b8ef95076abc05c3907392.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::CaseTest#test_0013_case with yield" +input: |2- +<% case yield(:a) %> +<% when 'a' %> + aaa +<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (2 items) ├── @ ERBCaseNode (location: (1:0)-(4:9)) diff --git a/test/snapshots/analyze/escape_test/test_0001_escaped_erb_tag_94dbe0d71e8d4a3dbd06d39ffcad350c.txt b/test/snapshots/analyze/escape_test/test_0001_escaped_erb_tag_94dbe0d71e8d4a3dbd06d39ffcad350c.txt index 9a8fe8968..7ae1a9343 100644 --- a/test/snapshots/analyze/escape_test/test_0001_escaped_erb_tag_94dbe0d71e8d4a3dbd06d39ffcad350c.txt +++ b/test/snapshots/analyze/escape_test/test_0001_escaped_erb_tag_94dbe0d71e8d4a3dbd06d39ffcad350c.txt @@ -1,3 +1,7 @@ +--- +source: "Analyze::EscapeTest#test_0001_escaped erb tag" +input: "<%% 'Test' %%>" +--- @ DocumentNode (location: (1:0)-(1:14)) └── children: (1 item) └── @ ERBContentNode (location: (1:0)-(1:14)) diff --git a/test/snapshots/analyze/escape_test/test_0002_escaped_erb_output_tag_1ded89a552e264d13fefa7cc822a35c0.txt b/test/snapshots/analyze/escape_test/test_0002_escaped_erb_output_tag_1ded89a552e264d13fefa7cc822a35c0.txt index c62cf6e00..8ded8c658 100644 --- a/test/snapshots/analyze/escape_test/test_0002_escaped_erb_output_tag_1ded89a552e264d13fefa7cc822a35c0.txt +++ b/test/snapshots/analyze/escape_test/test_0002_escaped_erb_output_tag_1ded89a552e264d13fefa7cc822a35c0.txt @@ -1,3 +1,7 @@ +--- +source: "Analyze::EscapeTest#test_0002_escaped erb output tag" +input: "<%%= 'Test' %%>" +--- @ DocumentNode (location: (1:0)-(1:15)) └── children: (1 item) └── @ ERBContentNode (location: (1:0)-(1:15)) diff --git a/test/snapshots/analyze/for_test/test_0001_for_loop_7ec5a7ce89b03a36c5579d1a65c14274.txt b/test/snapshots/analyze/for_test/test_0001_for_loop_7ec5a7ce89b03a36c5579d1a65c14274.txt index b55b3e88d..429afdd40 100644 --- a/test/snapshots/analyze/for_test/test_0001_for_loop_7ec5a7ce89b03a36c5579d1a65c14274.txt +++ b/test/snapshots/analyze/for_test/test_0001_for_loop_7ec5a7ce89b03a36c5579d1a65c14274.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::ForTest#test_0001_for loop" +input: |2- +<% for i in 1..5 %> + <%= i %> +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBForNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/for_test/test_0002_for_loop_with_children_cad2b2f8aa5d54b817d3c82e82818659.txt b/test/snapshots/analyze/for_test/test_0002_for_loop_with_children_cad2b2f8aa5d54b817d3c82e82818659.txt index 60f305f8c..b8f789ede 100644 --- a/test/snapshots/analyze/for_test/test_0002_for_loop_with_children_cad2b2f8aa5d54b817d3c82e82818659.txt +++ b/test/snapshots/analyze/for_test/test_0002_for_loop_with_children_cad2b2f8aa5d54b817d3c82e82818659.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::ForTest#test_0002_for loop with children" +input: |2- +<% for fruit in ["apple", "banana", "orange"] %> + <%= fruit %> +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBForNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/for_test/test_0003_for_loop_wrapped_in_element_dc5c7df187a9c834fe5bb14c4805f146.txt b/test/snapshots/analyze/for_test/test_0003_for_loop_wrapped_in_element_dc5c7df187a9c834fe5bb14c4805f146.txt index 9537815da..59b4536a4 100644 --- a/test/snapshots/analyze/for_test/test_0003_for_loop_wrapped_in_element_dc5c7df187a9c834fe5bb14c4805f146.txt +++ b/test/snapshots/analyze/for_test/test_0003_for_loop_wrapped_in_element_dc5c7df187a9c834fe5bb14c4805f146.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::ForTest#test_0003_for loop wrapped in element" +input: |2- +

+ <% for i in 1..5 %> + <%= i %> + <% end %> +

+--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(5:5)) diff --git a/test/snapshots/analyze/for_test/test_0004_nested_for_loops_491936055618c1eff4f83651ea92e8e9.txt b/test/snapshots/analyze/for_test/test_0004_nested_for_loops_491936055618c1eff4f83651ea92e8e9.txt index 5b0f12527..a0f02eb93 100644 --- a/test/snapshots/analyze/for_test/test_0004_nested_for_loops_491936055618c1eff4f83651ea92e8e9.txt +++ b/test/snapshots/analyze/for_test/test_0004_nested_for_loops_491936055618c1eff4f83651ea92e8e9.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::ForTest#test_0004_nested for loops" +input: |2- +<% for i in 1..5 %> + <% for j in 1..5 %> + <%= i %>, <%= j %> + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBForNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/if_test/test_0001_if_statement_6d66066a7761ec6dd8a7cc99cdc3489c.txt b/test/snapshots/analyze/if_test/test_0001_if_statement_6d66066a7761ec6dd8a7cc99cdc3489c.txt index 072ac5af6..9b9c5fc10 100644 --- a/test/snapshots/analyze/if_test/test_0001_if_statement_6d66066a7761ec6dd8a7cc99cdc3489c.txt +++ b/test/snapshots/analyze/if_test/test_0001_if_statement_6d66066a7761ec6dd8a7cc99cdc3489c.txt @@ -1,3 +1,9 @@ +--- +source: "Analyze::IfTest#test_0001_if statement" +input: |2- +<% if true %> +<% end %> +--- @ DocumentNode (location: (1:0)-(3:0)) └── children: (2 items) ├── @ ERBIfNode (location: (1:0)-(2:9)) diff --git a/test/snapshots/analyze/if_test/test_0002_if_else_statement_5af49f43e6d63267cffc095e54e5ffcd.txt b/test/snapshots/analyze/if_test/test_0002_if_else_statement_5af49f43e6d63267cffc095e54e5ffcd.txt index 6b88244d4..7ee1ec0e5 100644 --- a/test/snapshots/analyze/if_test/test_0002_if_else_statement_5af49f43e6d63267cffc095e54e5ffcd.txt +++ b/test/snapshots/analyze/if_test/test_0002_if_else_statement_5af49f43e6d63267cffc095e54e5ffcd.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::IfTest#test_0002_if/else statement" +input: |2- +<% if true %> +<% else %> +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBIfNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/if_test/test_0003_if_elsif_else_statement_189c9341230fd91e47ed767621771ae6.txt b/test/snapshots/analyze/if_test/test_0003_if_elsif_else_statement_189c9341230fd91e47ed767621771ae6.txt index 21fd5ce2a..07a158dfc 100644 --- a/test/snapshots/analyze/if_test/test_0003_if_elsif_else_statement_189c9341230fd91e47ed767621771ae6.txt +++ b/test/snapshots/analyze/if_test/test_0003_if_elsif_else_statement_189c9341230fd91e47ed767621771ae6.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::IfTest#test_0003_if/elsif/else statement" +input: |2- +<% if true %> +<% elsif false %> +<% else %> +<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (2 items) ├── @ ERBIfNode (location: (1:0)-(4:9)) diff --git a/test/snapshots/analyze/if_test/test_0004_if_elsif_elsif_else_statement_dda9e4f2ba454ab6d841390c684e222f.txt b/test/snapshots/analyze/if_test/test_0004_if_elsif_elsif_else_statement_dda9e4f2ba454ab6d841390c684e222f.txt index 21e0f2989..dc0bb5b66 100644 --- a/test/snapshots/analyze/if_test/test_0004_if_elsif_elsif_else_statement_dda9e4f2ba454ab6d841390c684e222f.txt +++ b/test/snapshots/analyze/if_test/test_0004_if_elsif_elsif_else_statement_dda9e4f2ba454ab6d841390c684e222f.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::IfTest#test_0004_if/elsif/elsif/else statement" +input: |2- +<% if true %> +<% elsif false %> +<% elsif nil %> +<% else %> +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBIfNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/if_test/test_0005_if_elsif_else_statement_with_children_2f01997aa5b65191b261fb73a3268eb2.txt b/test/snapshots/analyze/if_test/test_0005_if_elsif_else_statement_with_children_2f01997aa5b65191b261fb73a3268eb2.txt index ad025cc04..750ac3e93 100644 --- a/test/snapshots/analyze/if_test/test_0005_if_elsif_else_statement_with_children_2f01997aa5b65191b261fb73a3268eb2.txt +++ b/test/snapshots/analyze/if_test/test_0005_if_elsif_else_statement_with_children_2f01997aa5b65191b261fb73a3268eb2.txt @@ -1,3 +1,14 @@ +--- +source: "Analyze::IfTest#test_0005_if/elsif/else statement with children" +input: |2- +<% if true %> +

true

+<% elsif false %> +

false

+<% else %> +

else

+<% end %> +--- @ DocumentNode (location: (1:0)-(8:0)) └── children: (2 items) ├── @ ERBIfNode (location: (1:0)-(7:9)) diff --git a/test/snapshots/analyze/if_test/test_0006_if_elsif_else_statement_wrapped_in_element_45a48a89838b00831a86d6bc5b8a29f6.txt b/test/snapshots/analyze/if_test/test_0006_if_elsif_else_statement_wrapped_in_element_45a48a89838b00831a86d6bc5b8a29f6.txt index 86235cfd7..508248584 100644 --- a/test/snapshots/analyze/if_test/test_0006_if_elsif_else_statement_wrapped_in_element_45a48a89838b00831a86d6bc5b8a29f6.txt +++ b/test/snapshots/analyze/if_test/test_0006_if_elsif_else_statement_wrapped_in_element_45a48a89838b00831a86d6bc5b8a29f6.txt @@ -1,3 +1,16 @@ +--- +source: "Analyze::IfTest#test_0006_if/elsif/else statement wrapped in element" +input: |2- +

+ <% if true %> + true + <% elsif false %> + false + <% else %> + else + <% end %> +

+--- @ DocumentNode (location: (1:0)-(10:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(9:5)) diff --git a/test/snapshots/analyze/if_test/test_0007_nested_if_statements_d2803320721afe4e5e45cc05ece9915e.txt b/test/snapshots/analyze/if_test/test_0007_nested_if_statements_d2803320721afe4e5e45cc05ece9915e.txt index b24609bc6..06eb5a4b7 100644 --- a/test/snapshots/analyze/if_test/test_0007_nested_if_statements_d2803320721afe4e5e45cc05ece9915e.txt +++ b/test/snapshots/analyze/if_test/test_0007_nested_if_statements_d2803320721afe4e5e45cc05ece9915e.txt @@ -1,3 +1,14 @@ +--- +source: "Analyze::IfTest#test_0007_nested if statements" +input: |2- +<% if true %> + <% if false %> + <% if nil %> + true & false & nil + <% end %> + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(8:0)) └── children: (2 items) ├── @ ERBIfNode (location: (1:0)-(7:9)) diff --git a/test/snapshots/analyze/if_test/test_0008_if_else_statement_in_opening_tag_value_cc409a1f9d234299bd306bda568b32b4.txt b/test/snapshots/analyze/if_test/test_0008_if_else_statement_in_opening_tag_value_cc409a1f9d234299bd306bda568b32b4.txt index 37562b591..68284b7ce 100644 --- a/test/snapshots/analyze/if_test/test_0008_if_else_statement_in_opening_tag_value_cc409a1f9d234299bd306bda568b32b4.txt +++ b/test/snapshots/analyze/if_test/test_0008_if_else_statement_in_opening_tag_value_cc409a1f9d234299bd306bda568b32b4.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::IfTest#test_0008_if/else statement in opening tag value" +input: |2- +

+ id="title" + <% end %> +>

+--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(5:6)) diff --git a/test/snapshots/analyze/if_test/test_0009_if_else_statement_in_attribute_value_8dd410c9c918399254e71570caeb17dc.txt b/test/snapshots/analyze/if_test/test_0009_if_else_statement_in_attribute_value_8dd410c9c918399254e71570caeb17dc.txt index 3b4c09ddb..008eaecfb 100644 --- a/test/snapshots/analyze/if_test/test_0009_if_else_statement_in_attribute_value_8dd410c9c918399254e71570caeb17dc.txt +++ b/test/snapshots/analyze/if_test/test_0009_if_else_statement_in_attribute_value_8dd410c9c918399254e71570caeb17dc.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::IfTest#test_0009_if/else statement in attribute value" +input: |2- +

+--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(1:61)) diff --git a/test/snapshots/analyze/if_test/test_0010_guard_clause_with_if_modifier_should_not_be_parsed_as_ERBIfNode_84c50d0087a29c69bf5125ce6ec79f86.txt b/test/snapshots/analyze/if_test/test_0010_guard_clause_with_if_modifier_should_not_be_parsed_as_ERBIfNode_84c50d0087a29c69bf5125ce6ec79f86.txt index a2628958d..f9557bc65 100644 --- a/test/snapshots/analyze/if_test/test_0010_guard_clause_with_if_modifier_should_not_be_parsed_as_ERBIfNode_84c50d0087a29c69bf5125ce6ec79f86.txt +++ b/test/snapshots/analyze/if_test/test_0010_guard_clause_with_if_modifier_should_not_be_parsed_as_ERBIfNode_84c50d0087a29c69bf5125ce6ec79f86.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::IfTest#test_0010_guard clause with if modifier should not be parsed as ERBIfNode" +input: |2- +<% [1,2].each do |value| %> + <% next if false %> +
+<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(4:9)) diff --git a/test/snapshots/analyze/if_test/test_0011_guard_clause_with_return_if_modifier_6a92e7d29b0b8ff99771a96e90f4ac10.txt b/test/snapshots/analyze/if_test/test_0011_guard_clause_with_return_if_modifier_6a92e7d29b0b8ff99771a96e90f4ac10.txt index fe0f987c7..669f87f9b 100644 --- a/test/snapshots/analyze/if_test/test_0011_guard_clause_with_return_if_modifier_6a92e7d29b0b8ff99771a96e90f4ac10.txt +++ b/test/snapshots/analyze/if_test/test_0011_guard_clause_with_return_if_modifier_6a92e7d29b0b8ff99771a96e90f4ac10.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::IfTest#test_0011_guard clause with return if modifier" +input: |2- +<% def some_method %> + <% return if true %> +
This won't render
+<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (8 items) ├── @ ERBContentNode (location: (1:0)-(1:21)) diff --git a/test/snapshots/analyze/if_test/test_0012_guard_clause_with_break_if_modifier_41f095a3d010c4b7e9a38aa708b9054d.txt b/test/snapshots/analyze/if_test/test_0012_guard_clause_with_break_if_modifier_41f095a3d010c4b7e9a38aa708b9054d.txt index 02b208567..3b95e1274 100644 --- a/test/snapshots/analyze/if_test/test_0012_guard_clause_with_break_if_modifier_41f095a3d010c4b7e9a38aa708b9054d.txt +++ b/test/snapshots/analyze/if_test/test_0012_guard_clause_with_break_if_modifier_41f095a3d010c4b7e9a38aa708b9054d.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::IfTest#test_0012_guard clause with break if modifier" +input: |2- +<% loop do %> + <% break if condition %> +
Loop content
+<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(4:9)) diff --git a/test/snapshots/analyze/ternary_test/test_0001_ternary_operator_in_ERB_output_tag_487f1093637a362df78bafb89af97d09.txt b/test/snapshots/analyze/ternary_test/test_0001_ternary_operator_in_ERB_output_tag_487f1093637a362df78bafb89af97d09.txt index 50682ce30..68332954e 100644 --- a/test/snapshots/analyze/ternary_test/test_0001_ternary_operator_in_ERB_output_tag_487f1093637a362df78bafb89af97d09.txt +++ b/test/snapshots/analyze/ternary_test/test_0001_ternary_operator_in_ERB_output_tag_487f1093637a362df78bafb89af97d09.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::TernaryTest#test_0001_ternary operator in ERB output tag" +input: |2- +<%= condition ? true_value : false_value %> +--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ ERBContentNode (location: (1:0)-(1:43)) diff --git a/test/snapshots/analyze/ternary_test/test_0002_complex_ternary_operator_with_method_calls_c9fd4eebccb37e967b174ccf1bde7bf2.txt b/test/snapshots/analyze/ternary_test/test_0002_complex_ternary_operator_with_method_calls_c9fd4eebccb37e967b174ccf1bde7bf2.txt index c4d9f19ae..2f7c6f342 100644 --- a/test/snapshots/analyze/ternary_test/test_0002_complex_ternary_operator_with_method_calls_c9fd4eebccb37e967b174ccf1bde7bf2.txt +++ b/test/snapshots/analyze/ternary_test/test_0002_complex_ternary_operator_with_method_calls_c9fd4eebccb37e967b174ccf1bde7bf2.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::TernaryTest#test_0002_complex ternary operator with method calls" +input: |2- +<%= @user.new_record? ? new_user_path(name: @user.name) : edit_user_path(@user, name: @user.name) %> +--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ ERBContentNode (location: (1:0)-(1:100)) diff --git a/test/snapshots/analyze/ternary_test/test_0003_ternary_operator_in_form_with_3e5154d12d6259cc2ac2da74fc48e803.txt b/test/snapshots/analyze/ternary_test/test_0003_ternary_operator_in_form_with_3e5154d12d6259cc2ac2da74fc48e803.txt index 3668939f8..0aca98143 100644 --- a/test/snapshots/analyze/ternary_test/test_0003_ternary_operator_in_form_with_3e5154d12d6259cc2ac2da74fc48e803.txt +++ b/test/snapshots/analyze/ternary_test/test_0003_ternary_operator_in_form_with_3e5154d12d6259cc2ac2da74fc48e803.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::TernaryTest#test_0003_ternary operator in form_with" +input: |2- +<%= form_with model: @post, url: @post.new_record? ? posts_path : post_path(@post) do |f| %> + Content +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/ternary_test/test_0004_nested_ternary_operators_b02fe2f695043e3ef415f674581f8187.txt b/test/snapshots/analyze/ternary_test/test_0004_nested_ternary_operators_b02fe2f695043e3ef415f674581f8187.txt index 8a52854fa..75643a2c5 100644 --- a/test/snapshots/analyze/ternary_test/test_0004_nested_ternary_operators_b02fe2f695043e3ef415f674581f8187.txt +++ b/test/snapshots/analyze/ternary_test/test_0004_nested_ternary_operators_b02fe2f695043e3ef415f674581f8187.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::TernaryTest#test_0004_nested ternary operators" +input: |2- +<%= status == :active ? "Active" : (status == :pending ? "Pending" : "Inactive") %> +--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ ERBContentNode (location: (1:0)-(1:83)) diff --git a/test/snapshots/analyze/ternary_test/test_0005_ternary_operator_in_attribute_value_d0b1eb0c3aae3bb30cf7891afdac44b8.txt b/test/snapshots/analyze/ternary_test/test_0005_ternary_operator_in_attribute_value_d0b1eb0c3aae3bb30cf7891afdac44b8.txt index 82d333d2b..ccbf0ad28 100644 --- a/test/snapshots/analyze/ternary_test/test_0005_ternary_operator_in_attribute_value_d0b1eb0c3aae3bb30cf7891afdac44b8.txt +++ b/test/snapshots/analyze/ternary_test/test_0005_ternary_operator_in_attribute_value_d0b1eb0c3aae3bb30cf7891afdac44b8.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::TernaryTest#test_0005_ternary operator in attribute value" +input: |2- +
Content
+--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(1:65)) diff --git a/test/snapshots/analyze/ternary_test/test_0006_multiple_ternary_operators_in_same_ERB_tag_7dd1d18fe401ed6c61c478be9ee5140f.txt b/test/snapshots/analyze/ternary_test/test_0006_multiple_ternary_operators_in_same_ERB_tag_7dd1d18fe401ed6c61c478be9ee5140f.txt index 00325ad1a..8ef4caeef 100644 --- a/test/snapshots/analyze/ternary_test/test_0006_multiple_ternary_operators_in_same_ERB_tag_7dd1d18fe401ed6c61c478be9ee5140f.txt +++ b/test/snapshots/analyze/ternary_test/test_0006_multiple_ternary_operators_in_same_ERB_tag_7dd1d18fe401ed6c61c478be9ee5140f.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::TernaryTest#test_0006_multiple ternary operators in same ERB tag" +input: |2- +<%= link_to (user.admin? ? "Admin" : "User"), (user.active? ? active_path : inactive_path) %> +--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ ERBContentNode (location: (1:0)-(1:93)) diff --git a/test/snapshots/analyze/ternary_test/test_0007_ternary_operator_with_blocks_a8c8a50604f8821739b2814b58b652f2.txt b/test/snapshots/analyze/ternary_test/test_0007_ternary_operator_with_blocks_a8c8a50604f8821739b2814b58b652f2.txt index 6dc596787..423eac06b 100644 --- a/test/snapshots/analyze/ternary_test/test_0007_ternary_operator_with_blocks_a8c8a50604f8821739b2814b58b652f2.txt +++ b/test/snapshots/analyze/ternary_test/test_0007_ternary_operator_with_blocks_a8c8a50604f8821739b2814b58b652f2.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::TernaryTest#test_0007_ternary operator with blocks" +input: |2- +<%= content_tag :div, class: (visible? ? "show" : "hide") do %> + Content +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/ternary_test/test_0008_form_with_helper_with_ternary_in_url_parameter_e554d08ac7e5da90cd046d79030c2a44.txt b/test/snapshots/analyze/ternary_test/test_0008_form_with_helper_with_ternary_in_url_parameter_e554d08ac7e5da90cd046d79030c2a44.txt index aefe5bcdc..4c7c76623 100644 --- a/test/snapshots/analyze/ternary_test/test_0008_form_with_helper_with_ternary_in_url_parameter_e554d08ac7e5da90cd046d79030c2a44.txt +++ b/test/snapshots/analyze/ternary_test/test_0008_form_with_helper_with_ternary_in_url_parameter_e554d08ac7e5da90cd046d79030c2a44.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::TernaryTest#test_0008_form_with helper with ternary in url parameter" +input: |2- +<%= form_with model: @user, url: @user.new_record? ? users_path : user_path(@user), method: @user.new_record? ? :post : :patch do |form| %> + <%= form.text_field :name %> + <%= form.submit %> +<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(4:9)) diff --git a/test/snapshots/analyze/ternary_test/test_0009_content_tag_with_ternary_for_class_attribute_910f82cb9ee5855d1c51c08667ac90d5.txt b/test/snapshots/analyze/ternary_test/test_0009_content_tag_with_ternary_for_class_attribute_910f82cb9ee5855d1c51c08667ac90d5.txt index 1ac082fec..8ec0036e2 100644 --- a/test/snapshots/analyze/ternary_test/test_0009_content_tag_with_ternary_for_class_attribute_910f82cb9ee5855d1c51c08667ac90d5.txt +++ b/test/snapshots/analyze/ternary_test/test_0009_content_tag_with_ternary_for_class_attribute_910f82cb9ee5855d1c51c08667ac90d5.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::TernaryTest#test_0009_content_tag with ternary for class attribute" +input: |2- +<%= content_tag :div, "Hello World", class: current_user.admin? ? "admin-panel" : "user-panel" %> +--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ ERBContentNode (location: (1:0)-(1:97)) diff --git a/test/snapshots/analyze/ternary_test/test_0010_content_tag_with_ternary_for_data_attribute_6f00128b70c7d3176646995151ecfcaa.txt b/test/snapshots/analyze/ternary_test/test_0010_content_tag_with_ternary_for_data_attribute_6f00128b70c7d3176646995151ecfcaa.txt index 51e2c5dc7..6f4a34c40 100644 --- a/test/snapshots/analyze/ternary_test/test_0010_content_tag_with_ternary_for_data_attribute_6f00128b70c7d3176646995151ecfcaa.txt +++ b/test/snapshots/analyze/ternary_test/test_0010_content_tag_with_ternary_for_data_attribute_6f00128b70c7d3176646995151ecfcaa.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::TernaryTest#test_0010_content_tag with ternary for data attribute" +input: |2- +<%= content_tag :button, "Click me", + data: { + action: @item.published? ? "unpublish" : "publish", + confirm: @item.published? ? "Are you sure you want to unpublish?" : "Are you sure you want to publish?" + } %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBContentNode (location: (1:0)-(5:8)) diff --git a/test/snapshots/analyze/ternary_test/test_0011_form_with_with_complex_ternary_in_multiple_attributes_0db72f423bc1543d78016121e43409d3.txt b/test/snapshots/analyze/ternary_test/test_0011_form_with_with_complex_ternary_in_multiple_attributes_0db72f423bc1543d78016121e43409d3.txt index b1784587c..f2e10622b 100644 --- a/test/snapshots/analyze/ternary_test/test_0011_form_with_with_complex_ternary_in_multiple_attributes_0db72f423bc1543d78016121e43409d3.txt +++ b/test/snapshots/analyze/ternary_test/test_0011_form_with_with_complex_ternary_in_multiple_attributes_0db72f423bc1543d78016121e43409d3.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::TernaryTest#test_0011_form_with with complex ternary in multiple attributes" +input: |2- +<%= form_with model: @article, + url: @article.persisted? ? article_path(@article) : articles_path, + html: { class: @article.draft? ? "draft-form" : "published-form" }, + local: @article.draft? ? true : false do |f| %> + <%= f.text_field :title %> +<% end %> +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(6:9)) diff --git a/test/snapshots/analyze/ternary_test/test_0012_inline_if_modifier_in_ERB_output_tag_b4d740369619f1d7bde41172ac6933e6.txt b/test/snapshots/analyze/ternary_test/test_0012_inline_if_modifier_in_ERB_output_tag_b4d740369619f1d7bde41172ac6933e6.txt index 0c5c39fa2..4a73ac63c 100644 --- a/test/snapshots/analyze/ternary_test/test_0012_inline_if_modifier_in_ERB_output_tag_b4d740369619f1d7bde41172ac6933e6.txt +++ b/test/snapshots/analyze/ternary_test/test_0012_inline_if_modifier_in_ERB_output_tag_b4d740369619f1d7bde41172ac6933e6.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::TernaryTest#test_0012_inline if modifier in ERB output tag" +input: |2- +<%= render 'partial' if user_signed_in? %> +--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ ERBContentNode (location: (1:0)-(1:42)) diff --git a/test/snapshots/analyze/ternary_test/test_0013_inline_unless_modifier_in_ERB_output_tag_982863841843053cc3728f62e00fa523.txt b/test/snapshots/analyze/ternary_test/test_0013_inline_unless_modifier_in_ERB_output_tag_982863841843053cc3728f62e00fa523.txt index b55122e0e..21bd2e1f7 100644 --- a/test/snapshots/analyze/ternary_test/test_0013_inline_unless_modifier_in_ERB_output_tag_982863841843053cc3728f62e00fa523.txt +++ b/test/snapshots/analyze/ternary_test/test_0013_inline_unless_modifier_in_ERB_output_tag_982863841843053cc3728f62e00fa523.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::TernaryTest#test_0013_inline unless modifier in ERB output tag" +input: |2- +<%= link_to "Home", root_path unless current_page?(root_path) %> +--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ ERBContentNode (location: (1:0)-(1:64)) diff --git a/test/snapshots/analyze/unless_test/test_0001_unless_statement_b9069f5ae184133162ab0372cfb63c39.txt b/test/snapshots/analyze/unless_test/test_0001_unless_statement_b9069f5ae184133162ab0372cfb63c39.txt index 6f7395207..26013464d 100644 --- a/test/snapshots/analyze/unless_test/test_0001_unless_statement_b9069f5ae184133162ab0372cfb63c39.txt +++ b/test/snapshots/analyze/unless_test/test_0001_unless_statement_b9069f5ae184133162ab0372cfb63c39.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::UnlessTest#test_0001_unless statement" +input: |2- +<% unless true %> + true +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBUnlessNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/unless_test/test_0002_unless_statement_wrapped_in_element_da5f138eef1f987f71ce62c984ec4b98.txt b/test/snapshots/analyze/unless_test/test_0002_unless_statement_wrapped_in_element_da5f138eef1f987f71ce62c984ec4b98.txt index 899c7bdf2..4bb01e5c8 100644 --- a/test/snapshots/analyze/unless_test/test_0002_unless_statement_wrapped_in_element_da5f138eef1f987f71ce62c984ec4b98.txt +++ b/test/snapshots/analyze/unless_test/test_0002_unless_statement_wrapped_in_element_da5f138eef1f987f71ce62c984ec4b98.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::UnlessTest#test_0002_unless statement wrapped in element" +input: |2- +

+ <% unless true %> + true + <% end %> +

+--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(5:5)) diff --git a/test/snapshots/analyze/unless_test/test_0003_unless_statement_with_multiple_children_3e9be163722a3cc21d0ee1c07ebbbfd4.txt b/test/snapshots/analyze/unless_test/test_0003_unless_statement_with_multiple_children_3e9be163722a3cc21d0ee1c07ebbbfd4.txt index 57e9dfa48..00a724fad 100644 --- a/test/snapshots/analyze/unless_test/test_0003_unless_statement_with_multiple_children_3e9be163722a3cc21d0ee1c07ebbbfd4.txt +++ b/test/snapshots/analyze/unless_test/test_0003_unless_statement_with_multiple_children_3e9be163722a3cc21d0ee1c07ebbbfd4.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::UnlessTest#test_0003_unless statement with multiple children" +input: |2- +<% unless true %> +

true

+

true

+<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (2 items) ├── @ ERBUnlessNode (location: (1:0)-(4:9)) diff --git a/test/snapshots/analyze/unless_test/test_0004_unless_statement_with_multiple_children_wrapped_in_element_68d73e451f7629a849c27b9d53bf6a77.txt b/test/snapshots/analyze/unless_test/test_0004_unless_statement_with_multiple_children_wrapped_in_element_68d73e451f7629a849c27b9d53bf6a77.txt index ab2a37e7d..8d01f865d 100644 --- a/test/snapshots/analyze/unless_test/test_0004_unless_statement_with_multiple_children_wrapped_in_element_68d73e451f7629a849c27b9d53bf6a77.txt +++ b/test/snapshots/analyze/unless_test/test_0004_unless_statement_with_multiple_children_wrapped_in_element_68d73e451f7629a849c27b9d53bf6a77.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::UnlessTest#test_0004_unless statement with multiple children wrapped in element" +input: |2- +

+ <% unless true %> +

true

+

true

+ <% end %> + +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(6:5)) diff --git a/test/snapshots/analyze/unless_test/test_0005_unless_statement_with_else_70949ac6a2833b2b972508ab1ca3f701.txt b/test/snapshots/analyze/unless_test/test_0005_unless_statement_with_else_70949ac6a2833b2b972508ab1ca3f701.txt index c12c6aa9c..1e0e61ec6 100644 --- a/test/snapshots/analyze/unless_test/test_0005_unless_statement_with_else_70949ac6a2833b2b972508ab1ca3f701.txt +++ b/test/snapshots/analyze/unless_test/test_0005_unless_statement_with_else_70949ac6a2833b2b972508ab1ca3f701.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::UnlessTest#test_0005_unless statement with else" +input: |2- +<% unless true %> + true +<% else %> + else +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBUnlessNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/unless_test/test_0006_nested_unless_statements_f80d305e3bf8d4792b9110c87196318d.txt b/test/snapshots/analyze/unless_test/test_0006_nested_unless_statements_f80d305e3bf8d4792b9110c87196318d.txt index 97f255f4f..882d6aeaf 100644 --- a/test/snapshots/analyze/unless_test/test_0006_nested_unless_statements_f80d305e3bf8d4792b9110c87196318d.txt +++ b/test/snapshots/analyze/unless_test/test_0006_nested_unless_statements_f80d305e3bf8d4792b9110c87196318d.txt @@ -1,3 +1,14 @@ +--- +source: "Analyze::UnlessTest#test_0006_nested unless statements" +input: |2- +<% unless true %> + true + + <% unless false %> + false + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(8:0)) └── children: (2 items) ├── @ ERBUnlessNode (location: (1:0)-(7:9)) diff --git a/test/snapshots/analyze/unless_test/test_0007_guard_clause_with_unless_modifier_should_not_be_parsed_as_ERBUnlessNode_647968bffc9de35b805b872472b322b7.txt b/test/snapshots/analyze/unless_test/test_0007_guard_clause_with_unless_modifier_should_not_be_parsed_as_ERBUnlessNode_647968bffc9de35b805b872472b322b7.txt index 2d9b82db4..dcb1bc89c 100644 --- a/test/snapshots/analyze/unless_test/test_0007_guard_clause_with_unless_modifier_should_not_be_parsed_as_ERBUnlessNode_647968bffc9de35b805b872472b322b7.txt +++ b/test/snapshots/analyze/unless_test/test_0007_guard_clause_with_unless_modifier_should_not_be_parsed_as_ERBUnlessNode_647968bffc9de35b805b872472b322b7.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::UnlessTest#test_0007_guard clause with unless modifier should not be parsed as ERBUnlessNode" +input: |2- +<% items.each do |item| %> + <% next unless item.visible? %> +
<%= item.name %>
+<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(4:9)) diff --git a/test/snapshots/analyze/unless_test/test_0008_guard_clause_with_return_unless_modifier_650bfc3134fa92038c335f96f9047860.txt b/test/snapshots/analyze/unless_test/test_0008_guard_clause_with_return_unless_modifier_650bfc3134fa92038c335f96f9047860.txt index bc0fd0e21..2788b4d02 100644 --- a/test/snapshots/analyze/unless_test/test_0008_guard_clause_with_return_unless_modifier_650bfc3134fa92038c335f96f9047860.txt +++ b/test/snapshots/analyze/unless_test/test_0008_guard_clause_with_return_unless_modifier_650bfc3134fa92038c335f96f9047860.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::UnlessTest#test_0008_guard clause with return unless modifier" +input: |2- +<% def some_method %> + <% return unless condition %> +
This will render
+<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (8 items) ├── @ ERBContentNode (location: (1:0)-(1:21)) diff --git a/test/snapshots/analyze/unless_test/test_0009_guard_clause_with_break_unless_modifier_5ae9786a5b6893828c737287cffd216f.txt b/test/snapshots/analyze/unless_test/test_0009_guard_clause_with_break_unless_modifier_5ae9786a5b6893828c737287cffd216f.txt index 844e63c5a..e0ace911d 100644 --- a/test/snapshots/analyze/unless_test/test_0009_guard_clause_with_break_unless_modifier_5ae9786a5b6893828c737287cffd216f.txt +++ b/test/snapshots/analyze/unless_test/test_0009_guard_clause_with_break_unless_modifier_5ae9786a5b6893828c737287cffd216f.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::UnlessTest#test_0009_guard clause with break unless modifier" +input: |2- +<% loop do %> + <% break unless continue? %> +
Loop content
+<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(4:9)) diff --git a/test/snapshots/analyze/unless_test/test_0010_multiple_unless_guard_clauses_80edd1ae63fb2cd18f33418d1ef308c1.txt b/test/snapshots/analyze/unless_test/test_0010_multiple_unless_guard_clauses_80edd1ae63fb2cd18f33418d1ef308c1.txt index 5819fd67d..8f13e9d5b 100644 --- a/test/snapshots/analyze/unless_test/test_0010_multiple_unless_guard_clauses_80edd1ae63fb2cd18f33418d1ef308c1.txt +++ b/test/snapshots/analyze/unless_test/test_0010_multiple_unless_guard_clauses_80edd1ae63fb2cd18f33418d1ef308c1.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::UnlessTest#test_0010_multiple unless guard clauses" +input: |2- +<% items.each do |item| %> + <% next unless item %> + <% next unless item.active? %> + <% next unless item.published? %> +
<%= item.title %>
+<% end %> +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(6:9)) diff --git a/test/snapshots/analyze/unless_test/test_0011_distinguishes_between_block_unless_and_modifier_unless_4ca85acaceb3fb39b75797c6a07e7437.txt b/test/snapshots/analyze/unless_test/test_0011_distinguishes_between_block_unless_and_modifier_unless_4ca85acaceb3fb39b75797c6a07e7437.txt index 6b99a9218..4d5ded5d5 100644 --- a/test/snapshots/analyze/unless_test/test_0011_distinguishes_between_block_unless_and_modifier_unless_4ca85acaceb3fb39b75797c6a07e7437.txt +++ b/test/snapshots/analyze/unless_test/test_0011_distinguishes_between_block_unless_and_modifier_unless_4ca85acaceb3fb39b75797c6a07e7437.txt @@ -1,3 +1,15 @@ +--- +source: "Analyze::UnlessTest#test_0011_distinguishes between block unless and modifier unless" +input: |2- +<% items.each do |item| %> + <% next unless item.visible? %> + <% unless item.special? %> +
<%= item.name %>
+ <% else %> +
<%= item.name %>
+ <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(9:0)) └── children: (2 items) ├── @ ERBBlockNode (location: (1:0)-(8:9)) diff --git a/test/snapshots/analyze/until_test/test_0001_until_statement_cebc8340ea1e761f6ce3885d88328dc1.txt b/test/snapshots/analyze/until_test/test_0001_until_statement_cebc8340ea1e761f6ce3885d88328dc1.txt index 040960dcf..b431d6eb5 100644 --- a/test/snapshots/analyze/until_test/test_0001_until_statement_cebc8340ea1e761f6ce3885d88328dc1.txt +++ b/test/snapshots/analyze/until_test/test_0001_until_statement_cebc8340ea1e761f6ce3885d88328dc1.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::UntilTest#test_0001_until statement" +input: |2- +<% until true %> + true +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBUntilNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/until_test/test_0002_until_statement_wrapped_in_element_1f3ffcb5fe8fc6596865e33d2ab7252e.txt b/test/snapshots/analyze/until_test/test_0002_until_statement_wrapped_in_element_1f3ffcb5fe8fc6596865e33d2ab7252e.txt index 1423185e6..9db17084c 100644 --- a/test/snapshots/analyze/until_test/test_0002_until_statement_wrapped_in_element_1f3ffcb5fe8fc6596865e33d2ab7252e.txt +++ b/test/snapshots/analyze/until_test/test_0002_until_statement_wrapped_in_element_1f3ffcb5fe8fc6596865e33d2ab7252e.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::UntilTest#test_0002_until statement wrapped in element" +input: |2- +

+ <% until true %> + true + <% end %> +

+--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(5:5)) diff --git a/test/snapshots/analyze/until_test/test_0003_until_statement_with_multiple_children_329404c0b9dc64b1825b2b64f49640f7.txt b/test/snapshots/analyze/until_test/test_0003_until_statement_with_multiple_children_329404c0b9dc64b1825b2b64f49640f7.txt index 2cfdca624..3d32968cd 100644 --- a/test/snapshots/analyze/until_test/test_0003_until_statement_with_multiple_children_329404c0b9dc64b1825b2b64f49640f7.txt +++ b/test/snapshots/analyze/until_test/test_0003_until_statement_with_multiple_children_329404c0b9dc64b1825b2b64f49640f7.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::UntilTest#test_0003_until statement with multiple children" +input: |2- +<% until true %> +

true

+

true

+<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (2 items) ├── @ ERBUntilNode (location: (1:0)-(4:9)) diff --git a/test/snapshots/analyze/until_test/test_0004_until_statement_with_multiple_children_wrapped_in_element_b1ef79555d9533d568edd30004f8f031.txt b/test/snapshots/analyze/until_test/test_0004_until_statement_with_multiple_children_wrapped_in_element_b1ef79555d9533d568edd30004f8f031.txt index c67d54b7c..b509f8349 100644 --- a/test/snapshots/analyze/until_test/test_0004_until_statement_with_multiple_children_wrapped_in_element_b1ef79555d9533d568edd30004f8f031.txt +++ b/test/snapshots/analyze/until_test/test_0004_until_statement_with_multiple_children_wrapped_in_element_b1ef79555d9533d568edd30004f8f031.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::UntilTest#test_0004_until statement with multiple children wrapped in element" +input: |2- +

+ <% until true %> +

true

+

true

+ <% end %> + +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(6:5)) diff --git a/test/snapshots/analyze/until_test/test_0005_nested_until_statements_a09465aa6b8033b408b97fb325d7ab66.txt b/test/snapshots/analyze/until_test/test_0005_nested_until_statements_a09465aa6b8033b408b97fb325d7ab66.txt index cab78a206..5253ed772 100644 --- a/test/snapshots/analyze/until_test/test_0005_nested_until_statements_a09465aa6b8033b408b97fb325d7ab66.txt +++ b/test/snapshots/analyze/until_test/test_0005_nested_until_statements_a09465aa6b8033b408b97fb325d7ab66.txt @@ -1,3 +1,14 @@ +--- +source: "Analyze::UntilTest#test_0005_nested until statements" +input: |2- +<% until true %> + true + + <% until false %> + false + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(8:0)) └── children: (2 items) ├── @ ERBUntilNode (location: (1:0)-(7:9)) diff --git a/test/snapshots/analyze/until_test/test_0006_until_statement_with_break_a05643dc6a16774c25549930740f8c33.txt b/test/snapshots/analyze/until_test/test_0006_until_statement_with_break_a05643dc6a16774c25549930740f8c33.txt index 288ef98ee..3b7afcde0 100644 --- a/test/snapshots/analyze/until_test/test_0006_until_statement_with_break_a05643dc6a16774c25549930740f8c33.txt +++ b/test/snapshots/analyze/until_test/test_0006_until_statement_with_break_a05643dc6a16774c25549930740f8c33.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::UntilTest#test_0006_until statement with break" +input: |2- +<% until true %> + true + + <% break %> +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBUntilNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/until_test/test_0007_until_statement_with_next_360523760a88c79cd2e2a120fe723de7.txt b/test/snapshots/analyze/until_test/test_0007_until_statement_with_next_360523760a88c79cd2e2a120fe723de7.txt index b2a6f6120..adb716d1b 100644 --- a/test/snapshots/analyze/until_test/test_0007_until_statement_with_next_360523760a88c79cd2e2a120fe723de7.txt +++ b/test/snapshots/analyze/until_test/test_0007_until_statement_with_next_360523760a88c79cd2e2a120fe723de7.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::UntilTest#test_0007_until statement with next" +input: |2- +<% until true %> + true + + <% next %> +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBUntilNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/while_test/test_0001_while_statement_80ec9198a269a436b3bc6b3751352e04.txt b/test/snapshots/analyze/while_test/test_0001_while_statement_80ec9198a269a436b3bc6b3751352e04.txt index 921e5fa19..a9c708181 100644 --- a/test/snapshots/analyze/while_test/test_0001_while_statement_80ec9198a269a436b3bc6b3751352e04.txt +++ b/test/snapshots/analyze/while_test/test_0001_while_statement_80ec9198a269a436b3bc6b3751352e04.txt @@ -1,3 +1,10 @@ +--- +source: "Analyze::WhileTest#test_0001_while statement" +input: |2- +<% while true %> + true +<% end %> +--- @ DocumentNode (location: (1:0)-(4:0)) └── children: (2 items) ├── @ ERBWhileNode (location: (1:0)-(3:9)) diff --git a/test/snapshots/analyze/while_test/test_0002_while_statement_wrapped_in_element_0f8b0693370dfebe34b6705db39fd7ea.txt b/test/snapshots/analyze/while_test/test_0002_while_statement_wrapped_in_element_0f8b0693370dfebe34b6705db39fd7ea.txt index 65fcd77f4..1f94f16fe 100644 --- a/test/snapshots/analyze/while_test/test_0002_while_statement_wrapped_in_element_0f8b0693370dfebe34b6705db39fd7ea.txt +++ b/test/snapshots/analyze/while_test/test_0002_while_statement_wrapped_in_element_0f8b0693370dfebe34b6705db39fd7ea.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::WhileTest#test_0002_while statement wrapped in element" +input: |2- +

+ <% while true %> + true + <% end %> +

+--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(5:5)) diff --git a/test/snapshots/analyze/while_test/test_0003_while_statement_with_multiple_children_655e4c05f774ea93289049d3910a144f.txt b/test/snapshots/analyze/while_test/test_0003_while_statement_with_multiple_children_655e4c05f774ea93289049d3910a144f.txt index 5153785b8..fb5272278 100644 --- a/test/snapshots/analyze/while_test/test_0003_while_statement_with_multiple_children_655e4c05f774ea93289049d3910a144f.txt +++ b/test/snapshots/analyze/while_test/test_0003_while_statement_with_multiple_children_655e4c05f774ea93289049d3910a144f.txt @@ -1,3 +1,11 @@ +--- +source: "Analyze::WhileTest#test_0003_while statement with multiple children" +input: |2- +<% while true %> +

true

+

true

+<% end %> +--- @ DocumentNode (location: (1:0)-(5:0)) └── children: (2 items) ├── @ ERBWhileNode (location: (1:0)-(4:9)) diff --git a/test/snapshots/analyze/while_test/test_0004_while_statement_with_multiple_children_wrapped_in_element_fc5e9e2adcc5aff28ce2d7b0fb074464.txt b/test/snapshots/analyze/while_test/test_0004_while_statement_with_multiple_children_wrapped_in_element_fc5e9e2adcc5aff28ce2d7b0fb074464.txt index 9157c20fe..4f9fd59f4 100644 --- a/test/snapshots/analyze/while_test/test_0004_while_statement_with_multiple_children_wrapped_in_element_fc5e9e2adcc5aff28ce2d7b0fb074464.txt +++ b/test/snapshots/analyze/while_test/test_0004_while_statement_with_multiple_children_wrapped_in_element_fc5e9e2adcc5aff28ce2d7b0fb074464.txt @@ -1,3 +1,13 @@ +--- +source: "Analyze::WhileTest#test_0004_while statement with multiple children wrapped in element" +input: |2- +

+ <% while true %> +

true

+

true

+ <% end %> + +--- @ DocumentNode (location: (1:0)-(7:0)) └── children: (2 items) ├── @ HTMLElementNode (location: (1:0)-(6:5)) diff --git a/test/snapshots/analyze/while_test/test_0005_while_statement_with_multiple_children_and_multiple_while_adcbb3ba9e1af65fc56a9e4fd9ed0570.txt b/test/snapshots/analyze/while_test/test_0005_while_statement_with_multiple_children_and_multiple_while_adcbb3ba9e1af65fc56a9e4fd9ed0570.txt index 1dcb01dff..135b5324d 100644 --- a/test/snapshots/analyze/while_test/test_0005_while_statement_with_multiple_children_and_multiple_while_adcbb3ba9e1af65fc56a9e4fd9ed0570.txt +++ b/test/snapshots/analyze/while_test/test_0005_while_statement_with_multiple_children_and_multiple_while_adcbb3ba9e1af65fc56a9e4fd9ed0570.txt @@ -1,3 +1,15 @@ +--- +source: "Analyze::WhileTest#test_0005_while statement with multiple children and multiple while" +input: |2- +<% while true %> +

true

+

true

+ + <% while false %> +

false

+ <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(9:0)) └── children: (2 items) ├── @ ERBWhileNode (location: (1:0)-(8:9)) diff --git a/test/snapshots/analyze/while_test/test_0006_while_statement_with_break_7fe1a7737e0d01a3e8f78341ce5a31ea.txt b/test/snapshots/analyze/while_test/test_0006_while_statement_with_break_7fe1a7737e0d01a3e8f78341ce5a31ea.txt index 63ed0db2e..ed30b000c 100644 --- a/test/snapshots/analyze/while_test/test_0006_while_statement_with_break_7fe1a7737e0d01a3e8f78341ce5a31ea.txt +++ b/test/snapshots/analyze/while_test/test_0006_while_statement_with_break_7fe1a7737e0d01a3e8f78341ce5a31ea.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::WhileTest#test_0006_while statement with break" +input: |2- +<% while true %> + true + + <% break %> +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBWhileNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/while_test/test_0007_while_statement_with_next_c60dcf0135ff764cb78cf5ebab562962.txt b/test/snapshots/analyze/while_test/test_0007_while_statement_with_next_c60dcf0135ff764cb78cf5ebab562962.txt index f8f60e734..49d99778e 100644 --- a/test/snapshots/analyze/while_test/test_0007_while_statement_with_next_c60dcf0135ff764cb78cf5ebab562962.txt +++ b/test/snapshots/analyze/while_test/test_0007_while_statement_with_next_c60dcf0135ff764cb78cf5ebab562962.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::WhileTest#test_0007_while statement with next" +input: |2- +<% while true %> + true + + <% next %> +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBWhileNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/while_test/test_0008_while_statement_with_redo_48925bae257116b8279a76ad623f9657.txt b/test/snapshots/analyze/while_test/test_0008_while_statement_with_redo_48925bae257116b8279a76ad623f9657.txt index 7a626afa6..7fb84aefe 100644 --- a/test/snapshots/analyze/while_test/test_0008_while_statement_with_redo_48925bae257116b8279a76ad623f9657.txt +++ b/test/snapshots/analyze/while_test/test_0008_while_statement_with_redo_48925bae257116b8279a76ad623f9657.txt @@ -1,3 +1,12 @@ +--- +source: "Analyze::WhileTest#test_0008_while statement with redo" +input: |2- +<% while true %> + true + + <% redo %> +<% end %> +--- @ DocumentNode (location: (1:0)-(6:0)) └── children: (2 items) ├── @ ERBWhileNode (location: (1:0)-(5:9)) diff --git a/test/snapshots/analyze/while_test/test_0009_nested_while_statements_1b9c93b2610e46293a5d14116c6b2f96.txt b/test/snapshots/analyze/while_test/test_0009_nested_while_statements_1b9c93b2610e46293a5d14116c6b2f96.txt index 7f04af537..6b44749a5 100644 --- a/test/snapshots/analyze/while_test/test_0009_nested_while_statements_1b9c93b2610e46293a5d14116c6b2f96.txt +++ b/test/snapshots/analyze/while_test/test_0009_nested_while_statements_1b9c93b2610e46293a5d14116c6b2f96.txt @@ -1,3 +1,14 @@ +--- +source: "Analyze::WhileTest#test_0009_nested while statements" +input: |2- +<% while true %> + true + + <% while false %> + false + <% end %> +<% end %> +--- @ DocumentNode (location: (1:0)-(8:0)) └── children: (2 items) ├── @ ERBWhileNode (location: (1:0)-(7:9)) diff --git a/test/snapshots/analyze/yield_test/test_0001_yield_811e738151285db6da8e3a493b8d6e2b.txt b/test/snapshots/analyze/yield_test/test_0001_yield_811e738151285db6da8e3a493b8d6e2b.txt index 05b09860e..2441851c9 100644 --- a/test/snapshots/analyze/yield_test/test_0001_yield_811e738151285db6da8e3a493b8d6e2b.txt +++ b/test/snapshots/analyze/yield_test/test_0001_yield_811e738151285db6da8e3a493b8d6e2b.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::YieldTest#test_0001_yield" +input: |2- +<%= yield %> +--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ ERBYieldNode (location: (1:0)-(1:12)) diff --git a/test/snapshots/analyze/yield_test/test_0002_yield_with_symbol_0f3dddc66e3930ac6552f5a273092594.txt b/test/snapshots/analyze/yield_test/test_0002_yield_with_symbol_0f3dddc66e3930ac6552f5a273092594.txt index c93392d67..fa802e69d 100644 --- a/test/snapshots/analyze/yield_test/test_0002_yield_with_symbol_0f3dddc66e3930ac6552f5a273092594.txt +++ b/test/snapshots/analyze/yield_test/test_0002_yield_with_symbol_0f3dddc66e3930ac6552f5a273092594.txt @@ -1,3 +1,8 @@ +--- +source: "Analyze::YieldTest#test_0002_yield with symbol" +input: |2- +<%= yield :symbol %> +--- @ DocumentNode (location: (1:0)-(2:0)) └── children: (2 items) ├── @ ERBYieldNode (location: (1:0)-(1:20)) diff --git a/test/snapshots/engine/block_comments_test/test_0001_ruby_block_comments_with_=begin_and_=end_multiline_ff404c4e708f59f532b4042441e458ad.txt b/test/snapshots/engine/block_comments_test/test_0001_ruby_block_comments_with_=begin_and_=end_multiline_ff404c4e708f59f532b4042441e458ad.txt index b86d395f2..65f8e4403 100644 --- a/test/snapshots/engine/block_comments_test/test_0001_ruby_block_comments_with_=begin_and_=end_multiline_ff404c4e708f59f532b4042441e458ad.txt +++ b/test/snapshots/engine/block_comments_test/test_0001_ruby_block_comments_with_=begin_and_=end_multiline_ff404c4e708f59f532b4042441e458ad.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::BlockCommentsTest#test_0001_ruby block comments with =begin and =end multiline" +input: "{source: \"<%\\n=begin %>\\n This, while unusual, is a legal form of commenting.\\n<%\\n=end %>\\n
Hey there
\\n\", options: {}}" +--- _buf = ::String.new; =begin diff --git a/test/snapshots/engine/block_comments_test/test_0002_ruby_block_comments_inside_erb_tags_95bcfa3f3e28634bf923f18df0cd38a1.txt b/test/snapshots/engine/block_comments_test/test_0002_ruby_block_comments_inside_erb_tags_95bcfa3f3e28634bf923f18df0cd38a1.txt index 467a7f23a..80aa8e7b7 100644 --- a/test/snapshots/engine/block_comments_test/test_0002_ruby_block_comments_inside_erb_tags_95bcfa3f3e28634bf923f18df0cd38a1.txt +++ b/test/snapshots/engine/block_comments_test/test_0002_ruby_block_comments_inside_erb_tags_95bcfa3f3e28634bf923f18df0cd38a1.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::BlockCommentsTest#test_0002_ruby block comments inside erb tags" +input: "{source: \"<%\\n=begin\\nThis is a comment\\n=end\\n%>\\n

Content

\\n\", options: {}}" +--- _buf = ::String.new; =begin diff --git a/test/snapshots/engine/block_comments_test/test_0003_ruby_block_comments_with_code_before_and_after_0ee0ba8a9a25359175b884cf66f37b2c.txt b/test/snapshots/engine/block_comments_test/test_0003_ruby_block_comments_with_code_before_and_after_0ee0ba8a9a25359175b884cf66f37b2c.txt index 545dc4e42..e13a88cc2 100644 --- a/test/snapshots/engine/block_comments_test/test_0003_ruby_block_comments_with_code_before_and_after_0ee0ba8a9a25359175b884cf66f37b2c.txt +++ b/test/snapshots/engine/block_comments_test/test_0003_ruby_block_comments_with_code_before_and_after_0ee0ba8a9a25359175b884cf66f37b2c.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::BlockCommentsTest#test_0003_ruby block comments with code before and after" +input: "{source: \"<% x = 1 %>\\n<%\\n=begin\\nMulti-line comment\\nspanning multiple lines\\n=end\\n%>\\n<% y = 2 %>\\n
<%= x + y %>
\\n\", options: {}}" +--- _buf = ::String.new; x = 1; _buf << ' '.freeze; diff --git a/test/snapshots/engine/block_comments_test/test_0004_evaluation_ruby_block_comments_with_=begin_and_=end_mutliline_6bf3affa07b559b73f6428e0dbd270d2.txt b/test/snapshots/engine/block_comments_test/test_0004_evaluation_ruby_block_comments_with_=begin_and_=end_mutliline_6bf3affa07b559b73f6428e0dbd270d2.txt index a6a4497b5..e9769ee8a 100644 --- a/test/snapshots/engine/block_comments_test/test_0004_evaluation_ruby_block_comments_with_=begin_and_=end_mutliline_6bf3affa07b559b73f6428e0dbd270d2.txt +++ b/test/snapshots/engine/block_comments_test/test_0004_evaluation_ruby_block_comments_with_=begin_and_=end_mutliline_6bf3affa07b559b73f6428e0dbd270d2.txt @@ -1,2 +1,6 @@ +--- +source: "Engine::BlockCommentsTest#test_0004_evaluation: ruby block comments with =begin and =end mutliline" +input: "{source: \"<%\\n=begin %>\\n This, while unusual, is a legal form of commenting.\\n<%\\n=end %>\\n
Hey there
\\n\", locals: {}, options: {}}" +---
Hey there
diff --git a/test/snapshots/engine/block_comments_test/test_0005_evaluation_ruby_block_comments_inside_erb_tags_8a842d797202d0b31c9832cd43a22686.txt b/test/snapshots/engine/block_comments_test/test_0005_evaluation_ruby_block_comments_inside_erb_tags_8a842d797202d0b31c9832cd43a22686.txt index 1efa30582..58c8165c7 100644 --- a/test/snapshots/engine/block_comments_test/test_0005_evaluation_ruby_block_comments_inside_erb_tags_8a842d797202d0b31c9832cd43a22686.txt +++ b/test/snapshots/engine/block_comments_test/test_0005_evaluation_ruby_block_comments_inside_erb_tags_8a842d797202d0b31c9832cd43a22686.txt @@ -1,2 +1,6 @@ +--- +source: "Engine::BlockCommentsTest#test_0005_evaluation: ruby block comments inside erb tags" +input: "{source: \"<%\\n=begin\\nThis is a comment\\n=end\\n%>\\n

Content

\\n\", locals: {}, options: {}}" +---

Content

diff --git a/test/snapshots/engine/block_comments_test/test_0006_evaluation_ruby_block_comments_with_code_before_and_after_c5e6a4e1e9e691af8dcc74ae6c9564c9.txt b/test/snapshots/engine/block_comments_test/test_0006_evaluation_ruby_block_comments_with_code_before_and_after_c5e6a4e1e9e691af8dcc74ae6c9564c9.txt index d630b5b60..629a3de62 100644 --- a/test/snapshots/engine/block_comments_test/test_0006_evaluation_ruby_block_comments_with_code_before_and_after_c5e6a4e1e9e691af8dcc74ae6c9564c9.txt +++ b/test/snapshots/engine/block_comments_test/test_0006_evaluation_ruby_block_comments_with_code_before_and_after_c5e6a4e1e9e691af8dcc74ae6c9564c9.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::BlockCommentsTest#test_0006_evaluation: ruby block comments with code before and after" +input: "{source: \"<% x = 1 %>\\n<%\\n=begin\\nMulti-line comment\\nspanning multiple lines\\n=end\\n%>\\n<% y = 2 %>\\n
<%= x + y %>
\\n\", locals: {x: 1, y: 2}, options: {}}" +--- diff --git a/test/snapshots/engine/block_comments_test/test_0007_ruby_block_comments_with_=begin_and_=end_mutliline_and_no_space_before_ERB_closing_tag_72379778fa34572e48b949a780f761b1.txt b/test/snapshots/engine/block_comments_test/test_0007_ruby_block_comments_with_=begin_and_=end_mutliline_and_no_space_before_ERB_closing_tag_72379778fa34572e48b949a780f761b1.txt index b86d395f2..37d41a5be 100644 --- a/test/snapshots/engine/block_comments_test/test_0007_ruby_block_comments_with_=begin_and_=end_mutliline_and_no_space_before_ERB_closing_tag_72379778fa34572e48b949a780f761b1.txt +++ b/test/snapshots/engine/block_comments_test/test_0007_ruby_block_comments_with_=begin_and_=end_mutliline_and_no_space_before_ERB_closing_tag_72379778fa34572e48b949a780f761b1.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::BlockCommentsTest#test_0007_ruby block comments with =begin and =end mutliline and no space before ERB closing tag" +input: "{source: \"<%\\n=begin%>\\n This, while unusual, is a legal form of commenting.\\n<%\\n=end%>\\n
Hey there
\\n\", options: {}}" +--- _buf = ::String.new; =begin diff --git a/test/snapshots/engine/block_comments_test/test_0007_ruby_block_comments_with_=begin_and_=end_mutliline_and_no_space_before_ERB_closing_tag_e1b62f3b00e8efb6cac1e5842461de10.txt b/test/snapshots/engine/block_comments_test/test_0007_ruby_block_comments_with_=begin_and_=end_mutliline_and_no_space_before_ERB_closing_tag_e1b62f3b00e8efb6cac1e5842461de10.txt index a6a4497b5..4e4bbb95d 100644 --- a/test/snapshots/engine/block_comments_test/test_0007_ruby_block_comments_with_=begin_and_=end_mutliline_and_no_space_before_ERB_closing_tag_e1b62f3b00e8efb6cac1e5842461de10.txt +++ b/test/snapshots/engine/block_comments_test/test_0007_ruby_block_comments_with_=begin_and_=end_mutliline_and_no_space_before_ERB_closing_tag_e1b62f3b00e8efb6cac1e5842461de10.txt @@ -1,2 +1,6 @@ +--- +source: "Engine::BlockCommentsTest#test_0007_ruby block comments with =begin and =end mutliline and no space before ERB closing tag" +input: "{source: \"<%\\n=begin%>\\n This, while unusual, is a legal form of commenting.\\n<%\\n=end%>\\n
Hey there
\\n\", locals: {}, options: {}}" +---
Hey there
diff --git a/test/snapshots/engine/debug_mode_test/test_0001_debug_mode_disabled_by_default_1ae6b8eb8b1931a65192bc14b7593e1c.txt b/test/snapshots/engine/debug_mode_test/test_0001_debug_mode_disabled_by_default_1ae6b8eb8b1931a65192bc14b7593e1c.txt index 5b6ca0f26..7b7f9fca2 100644 --- a/test/snapshots/engine/debug_mode_test/test_0001_debug_mode_disabled_by_default_1ae6b8eb8b1931a65192bc14b7593e1c.txt +++ b/test/snapshots/engine/debug_mode_test/test_0001_debug_mode_disabled_by_default_1ae6b8eb8b1931a65192bc14b7593e1c.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0001_debug mode disabled by default" +input: "{source: \"

Hello <%= @name %>!

\", options: {}}" +--- _buf = ::String.new; _buf << '

Hello '.freeze; _buf << (@name).to_s; _buf << '!

'.freeze; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0002_debug_mode_enabled_71a0c34d23cde4f85d84b577b3ac6e86.txt b/test/snapshots/engine/debug_mode_test/test_0002_debug_mode_enabled_71a0c34d23cde4f85d84b577b3ac6e86.txt index 01bf762c8..54f1b7e40 100644 --- a/test/snapshots/engine/debug_mode_test/test_0002_debug_mode_enabled_71a0c34d23cde4f85d84b577b3ac6e86.txt +++ b/test/snapshots/engine/debug_mode_test/test_0002_debug_mode_enabled_71a0c34d23cde4f85d84b577b3ac6e86.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0002_debug mode enabled" +input: "{source: \"

Hello <%= @name %>!

\", options: {debug: true}}" +--- _buf = ::String.new; _buf << '

Hello '.freeze; _buf << (@name).to_s; _buf << '!

'.freeze; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0003_debug_mode_options_831362fdf630e5facad634abab817ddd.txt b/test/snapshots/engine/debug_mode_test/test_0003_debug_mode_options_831362fdf630e5facad634abab817ddd.txt index 214d8c46b..7e5bc82cd 100644 --- a/test/snapshots/engine/debug_mode_test/test_0003_debug_mode_options_831362fdf630e5facad634abab817ddd.txt +++ b/test/snapshots/engine/debug_mode_test/test_0003_debug_mode_options_831362fdf630e5facad634abab817ddd.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0003_debug mode options" +input: "{source: \"
Test
\", options: {debug: true, filename: \"app/views/test.html.erb\"}}" +--- _buf = ::String.new; _buf << '
Test
'.freeze; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0004_visible_erb_expression_gets_debug_span_9431501e9722fe8b38c66468fd77c1f5.txt b/test/snapshots/engine/debug_mode_test/test_0004_visible_erb_expression_gets_debug_span_9431501e9722fe8b38c66468fd77c1f5.txt index ad598c6b7..ad06d3be8 100644 --- a/test/snapshots/engine/debug_mode_test/test_0004_visible_erb_expression_gets_debug_span_9431501e9722fe8b38c66468fd77c1f5.txt +++ b/test/snapshots/engine/debug_mode_test/test_0004_visible_erb_expression_gets_debug_span_9431501e9722fe8b38c66468fd77c1f5.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0004_visible erb expression gets debug span" +input: "{source: \"

Welcome <%= @user.name %>!

\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << '

Welcome '.freeze; _buf << (@user.name).to_s; _buf << '!

'.freeze; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0005_multiple_visible_erb_expressions_get_debug_spans_78e7fde7b24d6ebbef7b0cc3e02dfeeb.txt b/test/snapshots/engine/debug_mode_test/test_0005_multiple_visible_erb_expressions_get_debug_spans_78e7fde7b24d6ebbef7b0cc3e02dfeeb.txt index bbc5f722a..3dc1a6c9f 100644 --- a/test/snapshots/engine/debug_mode_test/test_0005_multiple_visible_erb_expressions_get_debug_spans_78e7fde7b24d6ebbef7b0cc3e02dfeeb.txt +++ b/test/snapshots/engine/debug_mode_test/test_0005_multiple_visible_erb_expressions_get_debug_spans_78e7fde7b24d6ebbef7b0cc3e02dfeeb.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0005_multiple visible erb expressions get debug spans" +input: "{source: \"

Hello <%= @name %> on <%= Date.today %>!

\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << '

Hello '.freeze; _buf << (@name).to_s; _buf << ' on '.freeze; _buf << (Date.today).to_s; _buf << '!

'.freeze; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0006_attribute_erb_expressions_do_NOT_get_debug_spans_9827f669a2c87b0da29ee3e73f2485a8.txt b/test/snapshots/engine/debug_mode_test/test_0006_attribute_erb_expressions_do_NOT_get_debug_spans_9827f669a2c87b0da29ee3e73f2485a8.txt index ccefe8f75..3cd1d38a5 100644 --- a/test/snapshots/engine/debug_mode_test/test_0006_attribute_erb_expressions_do_NOT_get_debug_spans_9827f669a2c87b0da29ee3e73f2485a8.txt +++ b/test/snapshots/engine/debug_mode_test/test_0006_attribute_erb_expressions_do_NOT_get_debug_spans_9827f669a2c87b0da29ee3e73f2485a8.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0006_attribute erb expressions do NOT get debug spans" +input: "{source: \"
\\\" data-id=\\\"<%= @user.id %>\\\">Content
\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << '
Content
'.freeze; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0007_script_content_erb_expressions_do_NOT_get_debug_spans_fa19152dbae94261cb892c6fe543ee74.txt b/test/snapshots/engine/debug_mode_test/test_0007_script_content_erb_expressions_do_NOT_get_debug_spans_fa19152dbae94261cb892c6fe543ee74.txt index 39c7e0cf9..0cbd20c82 100644 --- a/test/snapshots/engine/debug_mode_test/test_0007_script_content_erb_expressions_do_NOT_get_debug_spans_fa19152dbae94261cb892c6fe543ee74.txt +++ b/test/snapshots/engine/debug_mode_test/test_0007_script_content_erb_expressions_do_NOT_get_debug_spans_fa19152dbae94261cb892c6fe543ee74.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0007_script content erb expressions do NOT get debug spans" +input: "{source: \"\\n\", options: {debug: true}}" +--- _buf = ::String.new; _buf << '\\n \\n\\n\", options: {debug: true, filename: \"app/views/layouts/application.html.erb\"}}" +--- _buf = ::String.new; _buf << ' diff --git a/test/snapshots/engine/debug_mode_test/test_0025_turbo_frame_tag_does_NOT_get_erb-output_outline_type_6441400221f6c4babe86ffc5da0cd758.txt b/test/snapshots/engine/debug_mode_test/test_0025_turbo_frame_tag_does_NOT_get_erb-output_outline_type_6441400221f6c4babe86ffc5da0cd758.txt index e8b944a48..dbe9add3e 100644 --- a/test/snapshots/engine/debug_mode_test/test_0025_turbo_frame_tag_does_NOT_get_erb-output_outline_type_6441400221f6c4babe86ffc5da0cd758.txt +++ b/test/snapshots/engine/debug_mode_test/test_0025_turbo_frame_tag_does_NOT_get_erb-output_outline_type_6441400221f6c4babe86ffc5da0cd758.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0025_turbo_frame_tag does NOT get erb-output outline type" +input: "{source: \"<%= turbo_frame_tag \\\"posts\\\" do %>

Content

<% end %>\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << turbo_frame_tag "posts" do; _buf << '

Content

'.freeze; end; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0026_content_for_with_block_does_NOT_get_erb-output_outline_type_1d1f4277e9176d7fdfd12943bfdca2fe.txt b/test/snapshots/engine/debug_mode_test/test_0026_content_for_with_block_does_NOT_get_erb-output_outline_type_1d1f4277e9176d7fdfd12943bfdca2fe.txt index ec2a93ed9..5bccc7e7f 100644 --- a/test/snapshots/engine/debug_mode_test/test_0026_content_for_with_block_does_NOT_get_erb-output_outline_type_1d1f4277e9176d7fdfd12943bfdca2fe.txt +++ b/test/snapshots/engine/debug_mode_test/test_0026_content_for_with_block_does_NOT_get_erb-output_outline_type_1d1f4277e9176d7fdfd12943bfdca2fe.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0026_content_for with block does NOT get erb-output outline type" +input: "{source: \"<%= content_for :sidebar do %>
Sidebar content
<% end %>\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << content_for :sidebar do; _buf << '
Sidebar content
'.freeze; end; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0027_content_tag_with_block_does_NOT_get_erb-output_outline_type_085c2022e3fc5db7ee51f4bdb45e58cc.txt b/test/snapshots/engine/debug_mode_test/test_0027_content_tag_with_block_does_NOT_get_erb-output_outline_type_085c2022e3fc5db7ee51f4bdb45e58cc.txt index 5c92738fa..fcfb60a22 100644 --- a/test/snapshots/engine/debug_mode_test/test_0027_content_tag_with_block_does_NOT_get_erb-output_outline_type_085c2022e3fc5db7ee51f4bdb45e58cc.txt +++ b/test/snapshots/engine/debug_mode_test/test_0027_content_tag_with_block_does_NOT_get_erb-output_outline_type_085c2022e3fc5db7ee51f4bdb45e58cc.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0027_content_tag with block does NOT get erb-output outline type" +input: "{source: \"<%= content_tag :div, class: \\\"wrapper\\\" do %>Content<% end %>\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << content_tag :div, class: "wrapper" do; _buf << 'Content'.freeze; end; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0028_link_to_with_block_does_NOT_get_erb-output_outline_type_25a2a32341c4efbd5fc67fcaccc65e04.txt b/test/snapshots/engine/debug_mode_test/test_0028_link_to_with_block_does_NOT_get_erb-output_outline_type_25a2a32341c4efbd5fc67fcaccc65e04.txt index 26531da29..1e12a74ae 100644 --- a/test/snapshots/engine/debug_mode_test/test_0028_link_to_with_block_does_NOT_get_erb-output_outline_type_25a2a32341c4efbd5fc67fcaccc65e04.txt +++ b/test/snapshots/engine/debug_mode_test/test_0028_link_to_with_block_does_NOT_get_erb-output_outline_type_25a2a32341c4efbd5fc67fcaccc65e04.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0028_link_to with block does NOT get erb-output outline type" +input: "{source: \"<%= link_to \\\"/users\\\" do %>View Users<% end %>\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << link_to "/users" do; _buf << 'View Users'.freeze; end; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0029_tag_helper_with_block_does_NOT_get_erb-output_outline_type_d94d55997ab20001501c4d8811a7bb88.txt b/test/snapshots/engine/debug_mode_test/test_0029_tag_helper_with_block_does_NOT_get_erb-output_outline_type_d94d55997ab20001501c4d8811a7bb88.txt index 714c3719a..11afcd65e 100644 --- a/test/snapshots/engine/debug_mode_test/test_0029_tag_helper_with_block_does_NOT_get_erb-output_outline_type_d94d55997ab20001501c4d8811a7bb88.txt +++ b/test/snapshots/engine/debug_mode_test/test_0029_tag_helper_with_block_does_NOT_get_erb-output_outline_type_d94d55997ab20001501c4d8811a7bb88.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0029_tag helper with block does NOT get erb-output outline type" +input: "{source: \"<%= tag.div class: \\\"container\\\" do %>Content<% end %>\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << tag.div class: "container" do; _buf << 'Content'.freeze; end; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0030_form_with_block_does_NOT_get_erb-output_outline_type_93a0348e20c77450c6d171153f72e728.txt b/test/snapshots/engine/debug_mode_test/test_0030_form_with_block_does_NOT_get_erb-output_outline_type_93a0348e20c77450c6d171153f72e728.txt index 66131f723..0ff3e1003 100644 --- a/test/snapshots/engine/debug_mode_test/test_0030_form_with_block_does_NOT_get_erb-output_outline_type_93a0348e20c77450c6d171153f72e728.txt +++ b/test/snapshots/engine/debug_mode_test/test_0030_form_with_block_does_NOT_get_erb-output_outline_type_93a0348e20c77450c6d171153f72e728.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0030_form_with block does NOT get erb-output outline type" +input: "{source: \"<%= form_with model: @user do |f| %>Form content<% end %>\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << form_with model: @user do |f|; _buf << 'Form content'.freeze; end; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0031_yield_expressions_get_NOT_erb-output_outline_type_0c837ffe84723a464e884d64d0e062dd.txt b/test/snapshots/engine/debug_mode_test/test_0031_yield_expressions_get_NOT_erb-output_outline_type_0c837ffe84723a464e884d64d0e062dd.txt index 187cdbb40..aee0e073b 100644 --- a/test/snapshots/engine/debug_mode_test/test_0031_yield_expressions_get_NOT_erb-output_outline_type_0c837ffe84723a464e884d64d0e062dd.txt +++ b/test/snapshots/engine/debug_mode_test/test_0031_yield_expressions_get_NOT_erb-output_outline_type_0c837ffe84723a464e884d64d0e062dd.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0031_yield expressions get NOT erb-output outline type" +input: "{source: \"

<%= yield :title %>

\", options: {debug: true, filename: \"layout.html.erb\"}}" +--- _buf = ::String.new; _buf << '

'.freeze; _buf << (yield :title).to_s; _buf << '

'.freeze; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0032_if_with_elements_89b5f8286cf91457e3403e9ac303a110.txt b/test/snapshots/engine/debug_mode_test/test_0032_if_with_elements_89b5f8286cf91457e3403e9ac303a110.txt index 42f713714..e46b5bcde 100644 --- a/test/snapshots/engine/debug_mode_test/test_0032_if_with_elements_89b5f8286cf91457e3403e9ac303a110.txt +++ b/test/snapshots/engine/debug_mode_test/test_0032_if_with_elements_89b5f8286cf91457e3403e9ac303a110.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0032_if with elements" +input: "{source: \"
\\n <% if event.static_metadata && event.static_metadata.location != \\\"Earth\\\" %>\\n <%= event.static_metadata.location %>\\n <% end %>\\n\\n <%= event.formatted_dates %>\\n\\n <% if event.static_metadata.last_edition? %>\\n
\\n <%= fa \\\"box-archive\\\", size: :xs, style: :regular, class: \\\"fill-gray-400\\\" %>\\n Final Edition\\n
\\n <% end %>\\n
\\n\", options: {debug: true, filename: \"layout.html.erb\"}}" +--- _buf = ::String.new; _buf << '
'.freeze; if event.static_metadata && event.static_metadata.location != "Earth"; _buf << ' diff --git a/test/snapshots/engine/debug_mode_test/test_0033_gets_view_and_erb_output_view_type_for_just_output_tag_a96009c6e583d1020beeee97e1ce62a9.txt b/test/snapshots/engine/debug_mode_test/test_0033_gets_view_and_erb_output_view_type_for_just_output_tag_a96009c6e583d1020beeee97e1ce62a9.txt index 7bafa30e0..b19f855f4 100644 --- a/test/snapshots/engine/debug_mode_test/test_0033_gets_view_and_erb_output_view_type_for_just_output_tag_a96009c6e583d1020beeee97e1ce62a9.txt +++ b/test/snapshots/engine/debug_mode_test/test_0033_gets_view_and_erb_output_view_type_for_just_output_tag_a96009c6e583d1020beeee97e1ce62a9.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0033_gets view and erb output view type for just output tag" +input: "{source: \"<%= hello %>\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << ''.freeze; _buf << (hello).to_s; _buf << ''.freeze; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0034_puts_debug_span_on_parent_if_HTMLTextContent_is_only_spaces_be6b19dff594a892a386128f09ffe067.txt b/test/snapshots/engine/debug_mode_test/test_0034_puts_debug_span_on_parent_if_HTMLTextContent_is_only_spaces_be6b19dff594a892a386128f09ffe067.txt index 6947049a1..a4c9c6ff2 100644 --- a/test/snapshots/engine/debug_mode_test/test_0034_puts_debug_span_on_parent_if_HTMLTextContent_is_only_spaces_be6b19dff594a892a386128f09ffe067.txt +++ b/test/snapshots/engine/debug_mode_test/test_0034_puts_debug_span_on_parent_if_HTMLTextContent_is_only_spaces_be6b19dff594a892a386128f09ffe067.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0034_puts debug span on parent if HTMLTextContent is only spaces" +input: "{source: \"

<%= hello %>

\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << '

'.freeze; _buf << (hello).to_s; _buf << '

'.freeze; _buf.to_s diff --git a/test/snapshots/engine/debug_mode_test/test_0035_puts_debug_span_on_parent_if_HTMLTextContent_is_only_whitespace_bac3b0b435460da6f79e9f55aa0330e8.txt b/test/snapshots/engine/debug_mode_test/test_0035_puts_debug_span_on_parent_if_HTMLTextContent_is_only_whitespace_bac3b0b435460da6f79e9f55aa0330e8.txt index 05c8f2fe2..2ac1c8e10 100644 --- a/test/snapshots/engine/debug_mode_test/test_0035_puts_debug_span_on_parent_if_HTMLTextContent_is_only_whitespace_bac3b0b435460da6f79e9f55aa0330e8.txt +++ b/test/snapshots/engine/debug_mode_test/test_0035_puts_debug_span_on_parent_if_HTMLTextContent_is_only_whitespace_bac3b0b435460da6f79e9f55aa0330e8.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0035_puts debug span on parent if HTMLTextContent is only whitespace" +input: "{source: \"

\\n <%= hello %>\\n

\\n\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << '

'.freeze; _buf << (hello).to_s; _buf << ' diff --git a/test/snapshots/engine/debug_mode_test/test_0036_mulitple_top-level_elements_should_be_wrapped_in_type=view_div_949cda6115e11aa1c64a4ba7f14af8d7.txt b/test/snapshots/engine/debug_mode_test/test_0036_mulitple_top-level_elements_should_be_wrapped_in_type=view_div_949cda6115e11aa1c64a4ba7f14af8d7.txt index aece10e38..4911afa4d 100644 --- a/test/snapshots/engine/debug_mode_test/test_0036_mulitple_top-level_elements_should_be_wrapped_in_type=view_div_949cda6115e11aa1c64a4ba7f14af8d7.txt +++ b/test/snapshots/engine/debug_mode_test/test_0036_mulitple_top-level_elements_should_be_wrapped_in_type=view_div_949cda6115e11aa1c64a4ba7f14af8d7.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0036_mulitple top-level elements should be wrapped in type=view div" +input: "{source: \"

Hello

\\n

World

\\n\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << '

Hello

World

diff --git a/test/snapshots/engine/debug_mode_test/test_0037_non_HTML-element_top-level_node_should_be_wrapped_in_type=view_div_a5de27451c9360545052120fb160f115.txt b/test/snapshots/engine/debug_mode_test/test_0037_non_HTML-element_top-level_node_should_be_wrapped_in_type=view_div_a5de27451c9360545052120fb160f115.txt index 5be6d39f4..a64061f2a 100644 --- a/test/snapshots/engine/debug_mode_test/test_0037_non_HTML-element_top-level_node_should_be_wrapped_in_type=view_div_a5de27451c9360545052120fb160f115.txt +++ b/test/snapshots/engine/debug_mode_test/test_0037_non_HTML-element_top-level_node_should_be_wrapped_in_type=view_div_a5de27451c9360545052120fb160f115.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0037_non HTML-element top-level node should be wrapped in type=view div" +input: "{source: \"<%= content_tag :div do %>\\n Content\\n<% end %>\\n\", options: {debug: true, filename: \"test.html.erb\"}}" +--- _buf = ::String.new; _buf << content_tag :div do; _buf << ' Content diff --git a/test/snapshots/engine/debug_mode_test/test_0038_head_content_erb_expressions_do_NOT_get_debug_spans_8089875648934cfa3372da1612535899.txt b/test/snapshots/engine/debug_mode_test/test_0038_head_content_erb_expressions_do_NOT_get_debug_spans_8089875648934cfa3372da1612535899.txt index 0d9690e7a..d7da9d412 100644 --- a/test/snapshots/engine/debug_mode_test/test_0038_head_content_erb_expressions_do_NOT_get_debug_spans_8089875648934cfa3372da1612535899.txt +++ b/test/snapshots/engine/debug_mode_test/test_0038_head_content_erb_expressions_do_NOT_get_debug_spans_8089875648934cfa3372da1612535899.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0038_head content erb expressions do NOT get debug spans" +input: "{source: \"\\n <%= @page_title %>\\n \\\">\\n\\n\", options: {debug: true}}" +--- _buf = ::String.new; _buf << ' '.freeze; _buf << (@page_title).to_s; _buf << ' diff --git a/test/snapshots/engine/debug_mode_test/test_0039_textarea_content_erb_expressions_do_NOT_get_debug_spans_749dc54ef9bc43f01a7308eb5aceb38e.txt b/test/snapshots/engine/debug_mode_test/test_0039_textarea_content_erb_expressions_do_NOT_get_debug_spans_749dc54ef9bc43f01a7308eb5aceb38e.txt index 470587032..e362c1fb9 100644 --- a/test/snapshots/engine/debug_mode_test/test_0039_textarea_content_erb_expressions_do_NOT_get_debug_spans_749dc54ef9bc43f01a7308eb5aceb38e.txt +++ b/test/snapshots/engine/debug_mode_test/test_0039_textarea_content_erb_expressions_do_NOT_get_debug_spans_749dc54ef9bc43f01a7308eb5aceb38e.txt @@ -1,3 +1,7 @@ +--- +source: "Engine::DebugModeTest#test_0039_textarea content erb expressions do NOT get debug spans" +input: "{source: \"\\n\", options: {debug: true}}" +--- _buf = ::String.new; _buf << '