Page MenuHomePhabricator

Add unit tests for Git change parsers
ClosedPublic

Authored by epriestley on Jan 20 2014, 7:50 PM.
Tags
None
Referenced Files
F18768463: D8012.id.diff
Oct 8 2025, 3:45 AM
F18766873: D8012.diff
Oct 7 2025, 7:08 PM
F18734551: D8012.id.diff
Sep 30 2025, 10:56 PM
F18653768: D8012.diff
Sep 21 2025, 5:43 PM
F18625302: D8012.id.diff
Sep 15 2025, 10:26 PM
F18602318: D8012.diff
Sep 13 2025, 2:46 PM
F18602316: D8012.diff
Sep 13 2025, 2:46 PM
F18467372: D8012.id18131.diff
Sep 2 2025, 12:35 PM
Subscribers

Details

Summary

Ref T4327. Adds some basic tests to the Git parser for a set of common operations (add, change, move, copy, directory, symlink, propchange).

Test Plan

Ran unit tests.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

src/applications/repository/worker/commitchangeparser/PhabricatorRepositoryGitCommitChangeParserWorker.php
231–249

The actual SQL code deals with all this type massaging, so we can use a simpler implementation here.