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

Method oneCellRowMS

test/core/TestCompactionQueue.java:263–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261 }
262
263 @Test
264 public void oneCellRowMS() throws Exception {
265 ArrayList<KeyValue> kvs = new ArrayList<KeyValue>(1);
266 ArrayList<Annotation> annotations = new ArrayList<Annotation>(0);
267 final byte[] qual = { (byte) 0xF0, 0x00, 0x00, 0x07 };
268 byte[] val = Bytes.fromLong(42L);
269 kvs.add(makekv(qual, val));
270 final KeyValue kv = compactionq.compact(kvs, annotations, null);
271 assertArrayEquals(qual, kv.qualifier());
272 assertArrayEquals(val, kv.value());
273
274 // We had nothing to do so...
275 // ... verify there were no put.
276 verify(tsdb, never()).put(anyBytes(), anyBytes(), anyBytes(), anyLong());
277 // ... verify there were no delete.
278 verify(tsdb, never()).delete(anyBytes(), any(byte[][].class));
279 }
280
281 @Test
282 public void twoCellRow() throws Exception {

Callers

nothing calls this directly

Calls 8

makekvMethod · 0.95
anyBytesMethod · 0.95
putMethod · 0.80
addMethod · 0.45
compactMethod · 0.45
qualifierMethod · 0.45
valueMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected