Skip to content

Commit

Permalink
task(cleanup): remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kdubb committed Sep 15, 2021
1 parent 8463ccf commit 40c4957
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Sources/PotentASN1/ASN1Decoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import BigInt
import Foundation
import OrderedDictionary
import PotentCodables


Expand Down

1 comment on commit 40c4957

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

40.57%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
Sources/PotentASN1
   ASN1.swift26.42%100%34.88%25.46%146, 149–154, 156–184, 189–191, 193–195, 200–231, 255–258, 260–263, 265–268, 270–273, 275–278, 290–293, 295–298, 300–303, 305–308, 310–313, 315–318, 325–328, 330–333, 335–338, 340–343, 345–348, 350–353, 381–387, 389–395, 399, 407–471, 473–528, 65–67, 73–75
   ASN1Decoder.swift36.93%100%44.23%36.36%100–101, 106, 112–117, 125–129, 133–145, 147–159, 161–173, 175–187, 189–201, 203–215, 217–229, 231–243, 245–257, 259–270, 272–283, 285–296, 303–307, 311–324, 326–337, 339–351, 36, 367–369, 37, 370–374, 377–379, 38, 380–384, 388–392, 396–399, 40, 400–409, 41, 410–419, 42, 420–424, 431, 444, 455, 458, 463, 482–486, 494–495, 505–510, 514–520, 535–545, 551–552, 556, 563–569, 573–583, 587–597, 601–611, 617–618, 627–628, 632–634, 643–644, 653–654, 658, 665–671, 675, 679–703, 708–724, 728, 76, 90–94, 98–99
   ASN1Encoder.swift50%100%41.67%50.88%100–103, 135–143, 159, 170–174, 182–183, 191–198, 204, 217–227, 233–234, 238, 245–251, 255–265, 269–330, 334–369, 37, 370–373, 379, 38, 380–383, 39, 393–395, 398, 41, 416–419, 42, 420, 43, 436, 439, 445–446, 452–453, 462, 486–493, 497–498, 503–509, 514–518, 523–541, 545–562, 566, 84, 87–95, 97–99
   ASN1Reader.swift51.38%100%40.63%52.56%110–112, 115, 121, 124, 130, 133, 136, 139, 142, 145–146, 151, 156, 159, 162, 165, 168, 171, 174, 177–178, 183–196, 206, 210–212, 221–246, 248–262, 272, 280, 291–296, 306, 323–328, 33, 332–333, 34–39, 46–51, 73–78, 96–97
   ASN1Serialization.swift66.67%100%66.67%66.67%24–26
   ASN1Writer.swift52.77%100%66.67%51.95%100–103, 106–107, 113–139, 142–155, 173–175, 178–180, 183–185, 188–190, 193–195, 198–200, 209–211, 214–216, 219–221, 224–226, 229, 23, 230–231, 234–236, 24, 243–244, 25, 251–257, 269, 52–53, 56–58, 61–66, 98–99
   AnyString.swift4.81%100%4.17%5%101–103, 105–107, 109–111, 113–115, 117–119, 124–126, 128–130, 132–134, 136–138, 140–142, 144–146, 148–150, 152–154, 156–158, 160–162, 49–52, 54–57, 68–71, 73–76, 79–82, 84–87, 92–95, 97–99
   AnyTime.swift100%100%100%100%
   BigInts.swift69.01%100%50%72.13%16–19, 21–24, 26–28, 30, 39, 44–47
   BitString.swift0%100%0%0%100–102, 104–113, 115–117, 124–133, 135–138, 23–26, 28–31, 33–35, 37–48, 50–53, 55–70, 72–74, 76–87, 89–93, 95–99
   ObjectIdentifier.swift0%100%0%0%21–23, 25–32, 34–36, 45–47, 53–56, 58–61, 67–69, 71–76
   Schema.swift13.29%100%6.25%14.05%122–134, 136–143, 145–148, 150–153, 155–165, 167–170, 172–175, 177–180, 182–185, 187–190, 192–195, 197–200, 202–205, 207–210, 212–215, 217–220, 222–225, 227–229, 235–279, 28, 280–289, 29, 290–299, 30, 300–309, 31, 310–319, 32, 320–329, 33, 330–339, 34, 340–349, 35, 350–369, 37, 370–371, 38–39, 41–48
   SchemaSpecified.swift0%100%0%0%22–24
   SchemaState.swift55.08%100%61.76%54.05%121–122, 132, 143, 148, 155–160, 166, 172, 175, 185, 189–190, 194–197, 201–215, 219–223, 227–258, 267–269, 50–56, 86–94
Sources/PotentCBOR
   CBOR.swift54.02%100%52.38%54.40%101–104, 106–109, 154–156, 162–164, 166–168, 174–179, 192–193, 212, 229–231, 233–235, 294–313, 66–69, 71–74, 76–79, 81–84, 91–94, 96–99
   CBORDecoder.swift46.67%100%51.43%46.15%100–105, 108–110, 120, 132, 136–146, 148–158, 168, 172–181, 183–192, 194–203, 205–214, 223, 227–237, 239–249, 257, 261–286, 291–299, 304, 306, 308, 310, 312, 314, 316–322, 325, 328, 332, 341, 345–349, 372–376, 75, 92–97
   CBOREncoder.swift63.44%100%55.17%67.19%70–72, 74–77, 80–81, 85, 90, 92–97
   CBORReader.swift98.89%100%100%98.77%173, 50
   CBORSerialization.swift88.24%100%75%92.31%80
   CBORStream.swift93.55%100%91.67%94%68–70
   CBORWriter.swift93.19%100%90.91%93.67%110–112, 115–117, 265–268
   Half.swift44.23%100%40%45.24%46–48, 57–66, 72–78, 84
Sources/PotentCodables
   AnyCodingKey.swift27.54%100%40%25.42%20–23, 35–42, 45–52, 59–67, 71–81, 89–92
   CodableErrors.swift76.92%100%100%75%33, 36, 39, 42, 45, 50
   Dates.swift99.05%100%100%98.94%73
   KeyStrategy.swift0%100%0%0%100–113, 153–200, 51–99
   NestedDecoders.swift5.65%100%4.55%6.02%101–103, 105–107, 109–111, 121–124, 126, 128–130, 132–134, 136–138, 142, 144–149, 151–153, 155–157, 159–161, 163–165, 167–169, 171–173, 175–177, 179–181, 183–185, 187–189, 191–193, 195–197, 199–201, 203–205, 207–209, 28, 34–36, 38–40, 44, 46–51, 53–55, 57–59, 61–63, 65–67, 69–71, 73–75, 77–79, 81–83, 85–87, 89–91, 93–95, 97–99
   NestedEncoders.swift0%100%0%0%100–102, 104–106, 108–110, 120–123, 125, 127–129, 131–133, 135–137, 141–143, 145–147, 149–151, 153–155, 157–159, 161–163, 165–167, 169–171, 173–175, 177–179, 181–183, 185–187, 189–191, 193–195, 197–199, 201–203, 205–207, 22–26, 28, 30–32, 34–36, 38–40, 44–46, 48–50, 52–54, 56–58, 60–62, 64–66, 68–70, 72–74, 76–78, 80–82, 84–86, 88–90, 92–94, 96–98
   Refs.swift93.24%100%93.75%93.10%189, 337, 407
   Tagged.swift0%100%0%0%100–102, 109–119, 126–137, 141–151, 156–167, 177–180, 185–188, 195–198, 208–211, 216–219, 224–227, 40–50, 59–70, 80–86, 96–99
   TimeZone.swift94.92%100%100%94.44%63–65
   ValueDecoder.swift29.52%100%51.69%27.05%100, 1000–1028, 1032–1039, 1046–1053, 1063–1095, 1097–1129, 1131–1148, 1156–1159, 116, 1160, 1164–1166, 117–119, 1191–1194, 1196–1199, 120, 1206–1209, 121, 1211–1214, 1216–1219, 122, 1221–1224, 1231–1234, 1236–1239, 1246–1249, 1267–1269, 1271–1273, 1279–1281, 1283–1285, 1287–1289, 1291–1293, 1299–1301, 1303–1305, 1311–1313, 1323–1325, 1332, 1360, 1363–1374, 1377, 1385, 139–141, 1416–1418, 142, 186–194, 211–217, 230–241, 268–270, 308–314, 350–352, 394–398, 400–404, 423–432, 434–440, 442–458, 462, 470, 477, 491–497, 501, 512–532, 534–540, 542–544, 546–548, 589–608, 610–638, 640–668, 670–698, 700–728, 730–758, 760–788, 790–818, 820–848, 850–878, 880–908, 910–938, 940–968, 970–998
   ValueEncoder.swift46.29%100%44.16%46.79%100, 1000–1003, 1016–1018, 1040–1042, 1045–1050, 1075–1077, 121–124, 159–162, 197, 199–207, 210–212, 256–258, 280–286, 303–307, 313, 337, 355–357, 361, 450–451, 453, 459–463, 465–469, 477–481, 483–487, 489–493, 495–499, 501–505, 507–511, 513–517, 519–523, 525–529, 537–541, 543–547, 558–577, 579–592, 594–601, 603–605, 641–653, 655–660, 662–667, 678–692, 694–703, 705–707, 735–738, 740–743, 745–748, 755–758, 760–763, 765–768, 770–773, 785–788, 790–793, 809–811, 813–816, 819–821, 823–824, 868–869, 872–873, 917–923, 931–937, 941–946, 948–950, 952–954, 956–962, 965–966, 971–980, 984–999
   ValueTransformer.swift0.60%100%0.58%0.60%1000, 103–105, 110–112, 117–119, 124–126, 131–133, 138–140, 145–147, 152–154, 159–161, 166–168, 173–175, 180–182, 187–189, 194–196, 201–203, 208–210, 217–219, 222–224, 227–229, 232–234, 237–239, 242–244, 247–249, 252–254, 257–259, 262–264, 267–269, 272–274, 277–279, 282–284, 287–289, 292–294, 297–299, 302–304, 307–309, 312–314, 317–319, 322–324, 327–329, 33, 332–334, 337–339, 34, 342–344, 35, 351–353, 356–358, 361–363, 366–368, 371–373, 376–378, 381–383, 386–388, 391–393, 396–398, 40, 401–403, 406–408, 41, 411–413, 42, 437–439, 445–447, 453–455, 461–463, 469, 47, 470–471, 477–479, 48, 485–487, 49, 493–495, 501–503, 509–511, 517–519, 525–527, 533–535, 54, 549, 55, 550–556, 56, 562–569, 575–582, 588–595, 601–608, 61, 614–619, 62, 620–621, 627–629, 63, 630–634, 640–647, 653–660, 666–673, 679, 68, 680–686, 69, 692–699, 70, 705–712, 721–723, 728–730, 735–737, 742–744, 749, 75, 750–751, 756–758, 76, 763–765, 77, 770–772, 777–779, 784–786, 791–793, 798–800, 805–807, 812–814, 819, 82, 820–821, 826–828, 83, 833–835, 84, 840–842, 847–849, 854–856, 861–863, 868–870, 875–877, 882–884, 889, 89, 890–891, 896–898, 90, 903–905, 91, 914–916, 921–923, 928–930, 935–937, 942–944, 949–951, 956–958, 96, 963–965, 97, 970–972, 977–979, 98, 984–986, 991–993, 998–999
   ZonedDate.swift13.89%100%25%12.50%18–24, 35–37, 46–63
Sources/PotentCodables/AnyValue
   AnyValue.swift30.48%100%24.24%31.04%100, 102–107, 109–114, 116–119, 121–124, 126–129, 131–134, 136–139, 141–144, 146–162, 172–174, 188–190, 212–215, 217–242, 245–268, 305, 312–415, 427, 433, 435, 437, 441, 443, 445, 447, 449, 451, 453, 455, 457, 459, 461, 95–99
   AnyValueDecoder.swift0%100%0%0%100–102, 108–111, 117–120, 126–129, 135–138, 144–147, 153–156, 162–165, 171–174, 180–183, 189, 19, 190–192, 198–199, 20, 200–201, 207–209, 21, 210, 216–219, 22, 224–227, 23, 232–235, 24, 247–249, 26–28, 43–45, 51–54, 60–69, 75–84, 90–93, 99
   AnyValueEncoder.swift0%100%0%0%100–101, 106–115, 120–122, 127–129, 134–136, 141–143, 148–150, 155–157, 162–164, 169–171, 176–178, 183–185, 19, 190–192, 197–199, 20, 204–206, 21, 211–213, 22, 225–227, 23–24, 26–28, 42–44, 46–48, 50–52, 57–59, 64–73, 78–80, 85–87, 92–94, 99
Sources/PotentJSON
   Errors.swift0%100%0%0%21–39, 47–65
   JSON.swift44.86%100%35.85%47.37%113, 118–121, 123–126, 128–131, 133–136, 138–141, 143–146, 148–151, 153–156, 167, 170–175, 181, 196, 229–231, 266–268, 270–272, 274–276, 296, 56–60, 62–66, 68–71, 73–76, 78–80, 82–84, 89–92, 95, 99
   JSONDecoder.swift24.91%100%38.24%23.05%115, 119–122, 127, 133–138, 145, 149–156, 158–165, 167–174, 176–183, 185–192, 194–201, 203–210, 212–219, 221–228, 230–237, 239–246, 248–255, 263, 267–275, 277–315, 317–341
   JSONEncoder.swift19.37%100%32.50%16.48%141, 144–146, 148–152, 154–155, 157–179, 181–203, 205–230, 232–243, 245–265, 275–284, 286–295, 300–307
   JSONReader.swift69.19%100%56.76%70.15%116, 136–143, 157–158, 165–173, 182–200, 202–230, 232–236, 238–246, 300–303, 309–310, 317–318, 322, 327–336, 346, 351–356, 379, 390, 403, 416–420, 422, 429, 432, 435, 451, 464–465, 467, 84, 93–95
   JSONSerialization.swift68.48%100%50%70.73%35, 52, 68–70, 76–78, 80–90, 92
   JSONWriter.swift75.53%100%66.67%76.14%100, 109–110, 118–119, 127–128, 138–139, 164–166, 170–171, 176–178, 182–185, 187–190, 192–196, 43, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 99
Sources/PotentYAML
   Errors.swift0%100%0%0%21–39, 47–65
   YAML.swift46.99%100%51.47%45.83%100–101, 103–106, 108–110, 112–114, 116–130, 168, 178–187, 189–198, 200–209, 211–220, 222–225, 227–230, 237–242, 244–249, 255, 273–276, 306–307, 316–329, 38–40, 406, 42–44, 48–49, 74–78, 98–99
   YAMLDecoder.swift26.63%100%37.14%25.35%115, 119–122, 127, 133–138, 146, 150–158, 160–168, 170–178, 180–188, 190–198, 200–208, 210–218, 220–228, 230–238, 240–248, 250–258, 260–268, 276, 280–288, 290–328, 330–354, 365–372, 378–380, 384–388
   YAMLEncoder.swift21.52%100%31.71%19.23%138, 147, 151, 155, 159, 163, 167, 171, 175, 179, 187, 191, 193–215, 217–239, 241–266, 268–279, 281–301, 316–322, 324–330, 335–342
   YAMLReader.swift87.66%100%90.63%87.32%119, 158, 162, 170, 173, 176, 179, 182, 204, 207, 21, 221–225, 229–233, 238, 257, 267, 290, 332, 336–338, 56, 59–60, 98–99
   YAMLSerialization.swift20%100%16.67%20.69%37, 44–46, 51–53, 55–65, 67
   YAMLWriter.swift96.69%100%100%96.43%133, 175, 180, 34–35, 57, 80, 95

Please sign in to comment.