Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add `truncate` function for Go templates #30484
This fix is part of the discussion in #28199 about using
As part of the fix, a new function
to show truncated ID (limited by length).
A unit test has been added.
This fix is related to #28199.
Signed-off-by: Yong Tang firstname.lastname@example.org
referenced this pull request
Jan 26, 2017
The tests could use the assertion helpers. I think it makes them a lot easier to read when they are shorter.
The error messages are also consistent that way, and include things like "Expected no error, but got: ..."