MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / addChild

Method addChild

test/tree/TestBranch.java:159–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157 }
158
159 @Test
160 public void addChild() throws Exception {
161 final Branch branch = buildTestBranch(tree);
162 final Branch child = new Branch(tree.getTreeId());
163 assertTrue(branch.addChild(child));
164 assertEquals(3, branch.getBranches().size());
165 assertEquals(2, branch.getLeaves().size());
166 }
167
168 @Test
169 public void addChildNoLocalBranches() throws Exception {

Callers

nothing calls this directly

Calls 6

buildTestBranchMethod · 0.95
addChildMethod · 0.95
getBranchesMethod · 0.95
getLeavesMethod · 0.95
sizeMethod · 0.65
getTreeIdMethod · 0.45

Tested by

no test coverage detected