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

Method test

src/test/java/com/rtg/jmx/DiskStatsTest.java:40–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38public class DiskStatsTest extends TestCase {
39
40 public void test() throws IOException {
41 final DiskStats ds = new DiskStats("rubbish");
42 final StringBuffer sb = new StringBuffer();
43 ds.addHeader(sb);
44 assertEquals(sb.toString(), 0, sb.length());
45 sb.setLength(0);
46 ds.addColumnData(sb);
47 assertEquals(sb.toString(), 0, sb.length());
48 sb.setLength(0);
49 ds.addColumnLabelsTop(sb);
50 assertEquals(sb.toString(), 0, sb.length());
51 sb.setLength(0);
52 ds.addColumnLabelsBottom(sb);
53 assertEquals(sb.toString(), 0, sb.length());
54 }
55
56 public void test2() throws IOException {
57 final DiskStats ds = new DiskStats("sda");

Callers

nothing calls this directly

Calls 7

addHeaderMethod · 0.95
addColumnDataMethod · 0.95
addColumnLabelsTopMethod · 0.95
addColumnLabelsBottomMethod · 0.95
toStringMethod · 0.65
lengthMethod · 0.65
assertEqualsMethod · 0.45

Tested by

no test coverage detected