Skip to content

fix(github_parser): fix GitHub full URL generation for files.#253

Merged
Artanias merged 1 commit into
mainfrom
fix_autotest
Jul 5, 2026
Merged

fix(github_parser): fix GitHub full URL generation for files.#253
Artanias merged 1 commit into
mainfrom
fix_autotest

Conversation

@Artanias

@Artanias Artanias commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator
  • Change URL generation logic to use /blob/ for files and /tree/ for directories;
  • Fix path construction to use consistent current_path format;
  • Update test expectations to match new output message.

- Change URL generation logic to use `/blob/` for files and `/tree/` for directories;
- Fix path construction to use consistent current_path format;
- Update test expectations to match new output message.
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

Coverage

Coverage Report
FileStmtsMissBranchBrPartCoverMissing
codeplag
   __init__.py3331006%5–6, 8–14, 16–17, 19–20, 22–34, 40–43, 45
   __main__.py33220%1, 3–4
   codeplagcli.py101820788%60–61, 63, 427->428, 428, 430->439, 439, 441->442, 442, 445->448, 448, 454->460, 460
   config.py390160100% 
   consts.py43000100% 
   display.py12849382158%45, 70->71, 71, 99–102, 104, 116, 118–119, 121–124, 126–127, 129, 135, 137–138, 140–143, 145–146, 148, 150, 154, 170–172, 180–181, 188–189, 191, 196–197, 199–200, 202, 206–210, 214–215
   featurescache.py2960079%31–32, 34, 37–38, 40
   getfeatures.py11370483634%97–100, 102–104, 106–108, 113–116, 118–120, 125, 128–129, 135–137, 163–168, 170, 172, 195–199, 201–204, 207–210, 212–213, 215, 217–218, 220, 240–244, 246–248, 250–251, 254–257, 259–260, 262, 264–265, 267
   logger.py61336543%28–30, 33, 35, 40–41, 45, 49–51, 58, 62–64, 66, 70–72, 74–77, 79, 85–90, 94–95, 103->104, 104
   reporters.py731020782%37->40, 40, 42->43, 43, 56->57, 57–58, 63->65, 73->74, 74, 76, 88, 92–93, 98
   translate.py510080%10
   types.py143060100% 
   utils.py444416160%1–2, 4, 6, 11–12, 15–17, 20–23, 25–28, 30–35, 37–41, 43–44, 53–54, 56–57, 59–66, 70, 76
codeplag/algorithms
   __init__.py0000100% 
   compare.py24020100% 
   featurebased.py129376497%35->36, 36, 71->74, 81->84, 84, 101->102, 102
   stringbased.py56028199%48->51
   tokenbased.py45320391%117->118, 118, 136->137, 137, 169->170, 170
codeplag/cplag
   __init__.py0000100% 
   const.py9000100% 
   tree.py48424390%32->33, 33–36
   utils.py8653302830%22–24, 37->40, 40->41, 41–42, 61–62, 64–66, 68–69, 71–75, 77–83, 85, 96, 105, 107–108, 110–116, 119, 122–125, 128–132, 134, 137–138, 140–141, 144, 150
codeplag/db
   __init__.py0000100% 
   mongo.py1131818682%62–64, 78–83, 85, 92–95, 120->121, 121–122, 180->181, 181–182
codeplag/handlers
   __init__.py0000100% 
   check.py208153786823%87–90, 92, 94–95, 97–102, 105, 109–116, 118–122, 124–125, 127, 129, 136–137, 149–150, 153, 155–159, 176–181, 183–185, 187–190, 196–197, 203–207, 216–220, 222–225, 230–239, 242–243, 252, 261–265, 270–281, 286–289, 292–293, 303–305, 307–311, 314, 319–329, 338, 341–343, 346–349, 351–352, 354, 362, 369–373, 379–380, 388–389, 404, 407, 445–448
   report.py216991025153%84–94, 97–99, 108–111, 120–121, 123, 127, 142->143, 143, 149–151, 160->140, 250->251, 251–252, 302–304, 307, 312–316, 320–322, 327–331, 334–336, 338, 350–353, 355–359, 362, 366–371, 395–399, 401–406, 433–436, 438–441, 443–448, 450, 457–459, 461–464, 473
   settings.py2222880%1–2, 4–5, 7–8, 11–15, 20, 23–30, 32, 34
codeplag/pyplag
   __init__.py0000100% 
   astwalkers.py65738885%23->25, 25–30, 37->38, 38, 39->exit, 81->83
   const.py7000100% 
   utils.py10062323030%26–27, 34–35, 42–43, 51–52, 57–59, 72->73, 73–74, 75->76, 76–77, 83, 85–89, 106–107, 109–111, 113–114, 116–119, 121–127, 129, 140, 149, 151–152, 154–159, 162–165, 167, 171, 174–175, 177–178, 181, 187
webparsers
   __init__.py0000100% 
   async_github_parser.py17517550500%1–5, 7–12, 14, 24, 27, 52–53, 55, 57, 59–60, 62, 64, 66–67, 69, 71, 79–80, 82, 84–86, 93–95, 97, 99, 104–109, 111, 114–116, 118–124, 126–127, 129–138, 140, 142–146, 148–151, 156–158, 168–169, 171, 173, 175–176, 178, 180, 183, 187, 189–193, 195–200, 209–210, 212, 214, 216, 222, 226–227, 229, 232, 243, 245, 247, 256, 259–266, 274–276, 281, 283, 285, 291, 293, 296–300, 302–303, 305–306, 309, 319–320, 327, 329–330, 338, 344–346, 349–351, 354, 362–363, 368, 370, 374, 380, 382, 385–389, 391, 401–406, 408, 411–412
   github_parser.py18426541085%34->37, 37, 56–58, 63->64, 64, 66->69, 73->74, 74, 77–80, 88–91, 119->122, 122, 148->151, 151, 248->251, 251, 260–262, 347–349, 357->360, 360, 363–364
   types.py63060100% 
TOTAL236588073836460% 

@Artanias Artanias merged commit aaed1bf into main Jul 5, 2026
7 checks passed
@Artanias Artanias deleted the fix_autotest branch July 5, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant