Page MenuHomePhabricator

Add unit tests for Git change parsers
ClosedPublic

Authored by epriestley on Jan 20 2014, 7:50 PM.
Tags
None
Referenced Files
F19898099: D8012.id.diff
Sun, Mar 29, 10:37 AM
F19818892: D8012.diff
Mar 6 2026, 1:06 AM
F19554882: D8012.diff
Jan 30 2026, 4:43 AM
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
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.