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

Method fetchRule

test/tree/TestTreeRule.java:192–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190 }
191
192 @Test
193 public void fetchRule() throws Exception {
194 setupStorage();
195 final TreeRule rule = TreeRule.fetchRule(storage.getTSDB(), 1, 2, 1)
196 .joinUninterruptibly();
197 assertNotNull(rule);
198 assertEquals(1, rule.getTreeId());
199 assertEquals(2, rule.getLevel());
200 assertEquals(1, rule.getOrder());
201 assertEquals("Host owner", rule.getDescription());
202 }
203
204 @Test
205 public void fetchRuleDoesNotExist() throws Exception {

Callers

nothing calls this directly

Calls 7

setupStorageMethod · 0.95
fetchRuleMethod · 0.95
getTreeIdMethod · 0.95
getLevelMethod · 0.95
getOrderMethod · 0.95
getDescriptionMethod · 0.95
getTSDBMethod · 0.80

Tested by

no test coverage detected