This is an archive of the discontinued Mercurial Phabricator instance.

fuzz: exercise more of the revlog API
ClosedPublic

Authored by durin42 on Jan 22 2019, 12:02 PM.

Details

Summary

I noticed in the coverage report that we didn't have much coverage in
revlog.py. Let's try and get some of the more interesting bits tested
by the fuzzer. I ran this locally for a few minutes to verify that I
appear to be calling the various functions in reasonable ways.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Jan 22 2019, 12:02 PM
martinvonz added inline comments.
contrib/fuzz/revlog.cc
22

nit: could have relied on revlog.__iter__ and used just index instead of range(len(index)) here and on the next line

This revision was automatically updated to reflect the committed changes.