MCPcopy Create free account
hub / github.com/DiUS/java-faker / testIpV6

Method testIpV6

src/test/java/com/github/javafaker/InternetTest.java:241–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239 }
240
241 @Test
242 public void testIpV6() {
243 assertThat(faker.internet().ipV6Address(), countOf(':', is(7)));
244
245 for (int i = 0; i < 1000; i++) {
246 assertThat(
247 "Is valid ipv6 format",
248 faker.internet().ipV6Address(),
249 matchesRegularExpression("[0-9a-fA-F]{1,4}(\\:([0-9a-fA-F]{1,4})){1,7}"));
250 }
251 }
252
253 @Test
254 public void testIpV6Cidr() {

Callers

nothing calls this directly

Calls 4

ipV6AddressMethod · 0.80
internetMethod · 0.80
countOfMethod · 0.80

Tested by

no test coverage detected