forked from woggioni/rbcs
- Update lys.version to 2026.04.14 - Add optional compileOnly dependency on opentelemetry-netty-4.1 in rbcs-server - Add runtime guard to only activate instrumentation when OTel classes are on classpath - Insert OTel combined handler after HttpServerCodec in the Netty pipeline - Add requires-static JPMS directives for optional module support - Add enableTelemetry config attribute to rbcs:server with default false - Update Configuration DTO, XSD schema, Parser, Serializer, and all tests
17 lines
415 B
Kotlin
17 lines
415 B
Kotlin
package net.woggioni.rbcs.common
|
|
|
|
import java.net.InetAddress
|
|
import org.junit.jupiter.api.Assertions
|
|
import org.junit.jupiter.api.Test
|
|
|
|
class CidrTest {
|
|
class CidrTest {
|
|
@Test
|
|
fun test() {
|
|
val cidr = Cidr.from("2a02:4780:12:368b::1/128")
|
|
Assertions.assertTrue {
|
|
cidr.contains(InetAddress.ofLiteral("2a02:4780:12:368b::1"))
|
|
}
|
|
}
|
|
}
|
|
} |