seaofvoices / darklua

A command line tool that transforms Lua code
https://darklua.com/
MIT License
78 stars 10 forks source link

Fix type packs, function variadic types and variadic type packs #137

Closed jeparlefrancais closed 10 months ago

jeparlefrancais commented 10 months ago
github-actions[bot] commented 10 months ago

Coverage after merging fix-type-packs-and-variadic-types into main will be

87.19%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
src
   ast_converter.rs87.96%100%89.72%87.88%1013, 1033, 1048, 1073, 1090, 1111, 1130–1132, 1149, 1177, 1211, 1226, 1242–1244, 1254, 1259–1261, 1276, 1296, 1427–1429, 1490–1492, 1543–1545, 1569–1572, 1607–1609, 1637–1639, 1643–1645, 1708–1709, 1738–1740, 1747–1749, 1768–1770, 1786–1788, 1793–1795, 1861, 1866–1868, 1888, 1894–1896, 1901–1903, 1931–1933, 1957, 1993, 2011–2013, 2037–2040, 2070–2072, 2083–2085, 212–214, 2147–2149, 2161–2163, 2167–2169, 2203, 2286–2288, 229–231, 2316–2318, 2339–2341, 2371–2373, 2389, 2393, 2416–2418, 2430–2432, 2451–2453, 2508–2510, 2544–2547, 2587–2589, 259, 2590–2591, 260, 2608–2609, 261, 2635, 2825, 2898–2905, 2907–2914, 2916–2926, 2935, 2937–2942, 2945, 2970–2972, 2983–2985, 3002–3004, 479, 494–496, 531–533, 541, 555, 570–572, 576–578, 593–595, 599, 608–610, 651, 662–664, 670–672, 691, 715, 802, 806–808, 888, 912, 924, 956, 973, 977–980, 994
   parser.rs99.10%100%73.33%99.35%37, 43, 452–458, 55–59, 66
src/generator
   dense.rs86.68%100%90.11%86.35%1004, 1013–1014, 1019, 1025, 1034–1042, 1044–1050, 1052–1060, 1065, 1074, 1086–1089, 1093–1096, 147–148, 150, 164–165, 167, 241–253, 255–261, 263–264, 275–277, 356, 404, 494, 50–55, 57–59, 6, 601–603, 61–63, 65–67, 672, 68–69, 691, 882, 900, 917, 943–950, 969–975, 992–996
   mod.rs98.68%100%100%98.57%351, 367, 371
   readable.rs96.83%100%95.28%96.97%1110, 1134–1138, 1158–1159, 1189, 1286, 1296, 1305, 1314, 1323, 192–193, 198, 203, 221–222, 402, 46–51, 53, 58, 644–645
   token_based.rs91.40%100%93.99%91.16%10, 1001–1002, 1016–1018, 1032–1034, 1043–1045, 1054–1056, 1065–1067, 113, 1216, 1286, 130–131, 1323–1331, 1407–1416, 1441–1443, 1445–1447, 1464–1469, 147, 1470–1473, 148, 1548, 160–161, 182–183, 1993–1994, 2020–2024, 203–205, 2053–2057, 2064–2068, 2270, 2274, 2287, 245, 297–301, 371–372, 378, 390, 450–451, 473–474, 490–491, 533, 621–622, 655–656, 724–725, 763–767, 80, 808–812, 830–831, 84, 904–905, 914–915, 922, 937, 942–946, 965–966, 979–980
src/nodes
   function_body.rs99.12%100%96.30%99.50%
src/nodes/expressions
   function.rs86.73%100%88.10%86.41%131–133, 191–193, 212, 224, 243–253, 42–45, 91
src/nodes/statements
   function.rs87.09%100%87.14%87.08%123–125, 174–183, 36–37, 378–379, 38, 380, 39–40, 400, 41, 413, 42–43, 433–444
   local_function.rs93.69%100%91.38%94.24%117–121, 235–237, 267, 280, 306
src/nodes/types
   function_variadic_type.rs85.71%100%80%88.89%
   mod.rs88.57%100%88.89%88.46%73–76, 78
src/process
   visitors.rs100%100%100%100%