-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Tests for --file-lines #7112
Copy link
Copy link
Open
Labels
A-test-harnessArea: rustfmt test harnessArea: rustfmt test harnessA-test-suiteArea: test suitesArea: test suitesC-discussionCategory: discussionCategory: discussion
Description
Activity
Metadata
Metadata
Assignees
Labels
A-test-harnessArea: rustfmt test harnessArea: rustfmt test harnessA-test-suiteArea: test suitesArea: test suitesC-discussionCategory: discussionCategory: discussion
I think the existing formatting tests can be made to work for testing
--file-lines.Basically, what you can do is run
diffbetween source/target, and identify the source lines that get formatted. Then use--file-linesto:This may cover many of the cases @randomPoison has been finding.
There may be cleverer ways of doing this that cover more cases