MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / toByteArray

Method toByteArray

test/core/TestAppendDataPoints.java:67–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66
67 @Test
68 public void toByteArray() throws Exception {
69 AppendDataPoints adp = new AppendDataPoints(DPQ_S, DPV);
70 assertArrayEquals(MockBase.concatByteArrays(DPQ_S, DPV), adp.getBytes());
71
72 adp = new AppendDataPoints(DPQ_MS, DPV);
73 assertArrayEquals(MockBase.concatByteArrays(DPQ_MS, DPV), adp.getBytes());
74
75 adp = new AppendDataPoints(MockBase.concatByteArrays(DPQ_MS, DPV),
76 MockBase.concatByteArrays(DPQ_S, DPV2));
77 assertArrayEquals(MockBase.concatByteArrays(DPQ_MS, DPV, DPQ_S, DPV2),
78 adp.getBytes());
79 }
80
81 @Test
82 public void parseKeyValue() throws Exception {

Callers 15

beforeMethod · 0.80
verifyE2EKryoMethod · 0.80
testToFromBytesMethod · 0.80
testSinglePercentileMethod · 0.80
testPercentileListMethod · 0.80
testArbitraryBucketsMethod · 0.80
histogramMethod · 0.80

Calls 2

concatByteArraysMethod · 0.95
getBytesMethod · 0.95

Tested by

no test coverage detected