Page MenuHomePhabricator

Add unit tests for Git change parsers
ClosedPublic

Authored by epriestley on Jan 20 2014, 7:50 PM.
Tags
None
Referenced Files
F14759703: D8012.id18123.diff
Wed, Jan 22, 1:47 PM
Unknown Object (File)
Tue, Jan 21, 11:37 AM
Unknown Object (File)
Sat, Jan 18, 4:27 AM
Unknown Object (File)
Fri, Jan 17, 8:13 PM
Unknown Object (File)
Sat, Jan 11, 4:32 PM
Unknown Object (File)
Mon, Jan 6, 2:07 PM
Unknown Object (File)
Fri, Dec 27, 12:30 PM
Unknown Object (File)
Wed, Dec 25, 7:54 AM
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.