MCPcopy Create free account
hub / github.com/RealTimeGenomics/rtg-tools / formatTimeRow

Method formatTimeRow

src/test/java/RtgTestEntry.java:207–209  ·  view source on GitHub ↗

Simple formatting of a test timing row. Will print wider if the test name doesn't fit @param name test name @param time time the test took @param width character width for the table. @return left aligned test name and right aligned time within width characters (if it fits)

(String name, long time, int width)

Source from the content-addressed store, hash-verified

205 * @return left aligned test name and right aligned time within {@code width} characters (if it fits)
206 */
207 private static String formatTimeRow(String name, long time, int width) {
208 return name + StringUtils.padLeft(String.valueOf(time), Math.max(0, width - name.length()));
209 }
210
211 /**
212 * @return an array of all the test classes in the classpath

Callers 1

mainMethod · 0.95

Calls 4

padLeftMethod · 0.95
lengthMethod · 0.65
valueOfMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected