Skip to content

storage/engine: wrap long lines in tests#32395

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
benesch:engine-wrap
Nov 28, 2018
Merged

storage/engine: wrap long lines in tests#32395
craig[bot] merged 1 commit intocockroachdb:masterfrom
benesch:engine-wrap

Conversation

@benesch
Copy link
Copy Markdown
Contributor

@benesch benesch commented Nov 15, 2018

Ignore the first commit, which is landing now in #32389.

This isn't a high-priority cleanup, but it's been driving me nuts and I was in the area.


The tests in this package were a case study in how to wrap code for
maximum illegibility. Enforce a line limit of 100 characters, except
where exceeding the limit by a few characters makes the code
substantially more readable.

The primary tool employed is extracting calls to context.Background()
into a per-test ctx variable.

All changes in this patch are straightforward reformattings with no
behavior changes.

Release note: None

@benesch benesch requested a review from petermattis November 15, 2018 20:52
@benesch benesch requested a review from a team as a code owner November 15, 2018 20:52
@benesch benesch requested a review from a team November 15, 2018 20:52
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@petermattis petermattis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 20 of 20 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained

@benesch
Copy link
Copy Markdown
Contributor Author

benesch commented Nov 15, 2018

Flaked on Examples ORMs. Thanks for the lightening review!

bors r=petermattis

@benesch
Copy link
Copy Markdown
Contributor Author

benesch commented Nov 15, 2018

bors r-

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Nov 15, 2018

Canceled

@benesch
Copy link
Copy Markdown
Contributor Author

benesch commented Nov 15, 2018

D'oh, need to rebase.

@benesch
Copy link
Copy Markdown
Contributor Author

benesch commented Nov 28, 2018

bors r=petermattis

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Nov 28, 2018

👎 Rejected by PR status

@benesch benesch removed request for a team November 28, 2018 14:48
@benesch
Copy link
Copy Markdown
Contributor Author

benesch commented Nov 28, 2018

Erm.

bors r=petermattis

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Nov 28, 2018

👎 Rejected by PR status

The tests in this package were a case study in how to wrap code for
maximum illegibility. Enforce a line limit of 100 characters, except
where exceeding the limit by a few characters makes the code
substantially more readable.

The primary tool employed is extracting calls to context.Background()
into a per-test ctx variable.

All changes in this patch are straightforward reformattings with no
behavior changes.

Release note: None
@benesch
Copy link
Copy Markdown
Contributor Author

benesch commented Nov 28, 2018

😞

bors r=petermattis

craig bot pushed a commit that referenced this pull request Nov 28, 2018
32395: storage/engine: wrap long lines in tests r=petermattis a=benesch

Ignore the first commit, which is landing now in #32389.

This isn't a high-priority cleanup, but it's been driving me nuts and I was in the area.

---

The tests in this package were a case study in how to wrap code for
maximum illegibility. Enforce a line limit of 100 characters, except
where exceeding the limit by a few characters makes the code
substantially more readable.

The primary tool employed is extracting calls to context.Background()
into a per-test ctx variable.

All changes in this patch are straightforward reformattings with no
behavior changes.

Release note: None

Co-authored-by: Nikhil Benesch <nikhil.benesch@gmail.com>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Nov 28, 2018

Build succeeded

@craig craig bot merged commit de73438 into cockroachdb:master Nov 28, 2018
@benesch benesch deleted the engine-wrap branch December 6, 2018 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants