Home / Function/ testCheckInRangeDouble() — netty Function Reference

testCheckInRangeDouble() — netty Function Reference

Architecture documentation for the testCheckInRangeDouble() function in ObjectUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d1a3e5be_60fa_418c_90ce_e44ef9b1d818["testCheckInRangeDouble()"]
  8fcf4c56_0a48_2ee3_0436_44c30076d4c0["ObjectUtilTest"]
  d1a3e5be_60fa_418c_90ce_e44ef9b1d818 -->|defined in| 8fcf4c56_0a48_2ee3_0436_44c30076d4c0
  style d1a3e5be_60fa_418c_90ce_e44ef9b1d818 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/ObjectUtilTest.java lines 598–613

    @Test
    public void testCheckInRangeDouble() {
        assertDoesNotThrow(() -> ObjectUtil.checkInRange(0.5, 0.0, 1.0, "in range"));

        assertDoesNotThrow(() -> ObjectUtil.checkInRange(0.0, 0.0, 1.0, "start of range"));

        assertDoesNotThrow(() -> ObjectUtil.checkInRange(1.0, 0.0, 1.0, "end of range"));

        assertThrows(IllegalArgumentException.class, () -> {
            ObjectUtil.checkInRange(-0.1, 0.0, 1.0, "below range");
        });

        assertThrows(IllegalArgumentException.class, () -> {
            ObjectUtil.checkInRange(1.1, 0.0, 1.0, "above range");
        });
    }

Domain

Subdomains

Frequently Asked Questions

What does testCheckInRangeDouble() do?
testCheckInRangeDouble() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/ObjectUtilTest.java.
Where is testCheckInRangeDouble() defined?
testCheckInRangeDouble() is defined in common/src/test/java/io/netty/util/internal/ObjectUtilTest.java at line 598.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free