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

Method oneCellRow

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

Source from the content-addressed store, hash-verified

145 }
146
147 @Test
148 public void oneCellRow() throws Exception {
149 ArrayList<KeyValue> kvs = new ArrayList<KeyValue>(1);
150 ArrayList<Annotation> annotations = new ArrayList<Annotation>(0);
151 final byte[] qual = { 0x00, 0x07 };
152 final byte[] val = Bytes.fromLong(42L);
153 kvs.add(makekv(qual, val));
154 final KeyValue kv = compactionq.compact(kvs, annotations, null);
155 assertArrayEquals(qual, kv.qualifier());
156 assertArrayEquals(val, kv.value());
157
158 // We had nothing to do so...
159 // ... verify there were no put.
160 verify(tsdb, never()).put(anyBytes(), anyBytes(), anyBytes(), anyLong());
161 // ... verify there were no delete.
162 verify(tsdb, never()).delete(anyBytes(), any(byte[][].class));
163 }
164
165 @Test
166 public void oneCellAppend() 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