seaofvoices / darklua

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

Fix table literal property types #135

Closed jeparlefrancais closed 10 months ago

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

Coverage after merging fix-table-type into main will be

86.99%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
src
   ast_converter.rs87.81%100%88.57%87.77%1003, 1022, 1052, 1076, 1093, 1125–1127, 1142, 1170, 1212, 1227, 1243–1245, 1255, 1260–1262, 1277, 1288, 1418–1420, 1481–1483, 1534–1536, 1560–1563, 1598–1600, 1628–1630, 1634–1636, 1699–1700, 1729–1731, 1738–1740, 1759–1761, 1777–1779, 1784–1786, 1847, 1852–1854, 1874, 1880–1882, 1887–1889, 1922–1927, 1951–1953, 1979, 2042, 2060–2062, 2097–2100, 2130, 2144, 2148–2150, 218–220, 2204–2206, 2218–2220, 2224–2226, 2260, 2343–2345, 235–236, 2365–2367, 237, 2388–2390, 2420–2422, 2438, 2442, 2465–2467, 2479–2481, 2500–2502, 2557–2559, 2566, 265–267, 2756, 2829–2836, 2838–2845, 2847–2857, 2866, 2868–2873, 2876, 2901–2903, 2914–2916, 2933–2935, 485, 500–502, 537–539, 547, 561, 577–579, 581–582, 584–586, 599–601, 605, 614–616, 657, 668–670, 676–678, 683–686, 697, 721, 808, 812–814, 897, 921, 933, 965, 982, 986–989
   parser.rs99.29%100%74.19%99.55%37, 43, 55–59, 66
src/generator
   dense.rs87.30%100%90.11%87.03%1001, 1007, 1016–1024, 1026–1032, 1034–1042, 1047, 1056, 1068–1071, 1075–1078, 147–148, 150, 164–165, 167, 250–252, 331, 50–55, 567–569, 57–59, 6, 61–63, 638, 65–69, 843, 861, 878, 904–911, 930–936, 953–957, 968–976, 978–984, 986, 995–996
   readable.rs95.35%100%94.34%95.44%1068, 1092–1096, 1147, 1212–1220, 1222–1228, 1230, 1265, 1275, 1284, 1293, 1302, 192–193, 198, 203, 221–222, 46–51, 53, 58, 612–613
   token_based.rs89.46%100%92.93%89.14%10, 1001, 1014–1021, 1023–1032, 1035, 1037–1046, 1049–1050, 1066–1067, 1081–1083, 1097–1099, 1108–1110, 1119–1121, 113, 1130–1132, 1281, 130–131, 1351, 1388–1396, 147, 1472–1479, 148, 1480–1481, 1506–1508, 1510–1512, 1529–1538, 160–161, 1613, 182–183, 203–205, 2058–2059, 2085–2089, 2118–2122, 2129–2133, 2335, 2339, 2352, 245, 297–301, 373–374, 380, 392, 426–427, 449–450, 466–467, 509, 582–583, 592–593, 599–600, 606, 618, 644–645, 678–679, 747–748, 774–775, 784–785, 791–792, 798, 80, 810, 835–836, 84, 877–881, 899–900, 961–968, 983–984, 993–994
src/nodes/types
   table.rs55.70%100%58.70%54.95%107–111, 136–138, 165–170, 172–177, 186–191, 236–238, 245–250, 252–257, 266–271, 282–286, 288, 290–294, 296, 306–310, 312, 340–348, 392–394, 406–410, 418–420, 467–474, 476–483, 494–501, 512–518, 520–526, 536–542, 57–60, 63–66, 75–78, 89–93, 95–99
src/process
   visitors.rs100%100%100%100%