MCPcopy Create free account
hub / github.com/google/guice / checkModule

Method checkModule

core/test/com/google/inject/spi/ElementsTest.java:1353–1357  ·  view source on GitHub ↗

Ensures the module performs the commands consistent with visitors.

(Module module, ElementVisitor<?>... visitors)

Source from the content-addressed store, hash-verified

1351
1352 /** Ensures the module performs the commands consistent with {@code visitors}. */
1353 protected void checkModule(Module module, ElementVisitor<?>... visitors) {
1354 List<Element> elements = Elements.getElements(module);
1355 assertEquals(elements.size(), visitors.length);
1356 checkElements(elements, visitors);
1357 }
1358
1359 protected void checkElements(List<Element> elements, ElementVisitor<?>... visitors) {
1360 for (int i = 0; i < visitors.length; i++) {

Calls 3

getElementsMethod · 0.95
checkElementsMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected