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

Method getGlobalAnnotations

test/meta/TestAnnotation.java:152–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 }
151
152 @Test
153 public void getGlobalAnnotations() throws Exception {
154 setupStorage(false);
155 List<Annotation> notes = Annotation.getGlobalAnnotations(tsdb, 1328140000,
156 1328141000).joinUninterruptibly();
157 assertNotNull(notes);
158 assertEquals(2, notes.size());
159 Annotation note0 = notes.get(0);
160 Annotation note1 = notes.get(1);
161 assertEquals("Description", note0.getDescription());
162 assertEquals("Global 2", note1.getDescription());
163 }
164
165 @Test
166 public void getGlobalAnnotationsSalted() throws Exception {

Callers

nothing calls this directly

Calls 5

setupStorageMethod · 0.95
getGlobalAnnotationsMethod · 0.95
getDescriptionMethod · 0.95
sizeMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected