Home / Function/ mustSupportDuplicateValues() — netty Function Reference

mustSupportDuplicateValues() — netty Function Reference

Architecture documentation for the mustSupportDuplicateValues() function in IntPriorityQueueTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  240a079a_b8a2_00cf_38cd_edf512e57b1c["mustSupportDuplicateValues()"]
  b98c03f4_3d86_02c0_747b_f06548c0b7f8["IntPriorityQueueTest"]
  240a079a_b8a2_00cf_38cd_edf512e57b1c -->|defined in| b98c03f4_3d86_02c0_747b_f06548c0b7f8
  style 240a079a_b8a2_00cf_38cd_edf512e57b1c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/test/java/io/netty/buffer/IntPriorityQueueTest.java lines 119–146

    @Test
    public void mustSupportDuplicateValues() {
        IntPriorityQueue pq = new IntPriorityQueue();
        pq.offer(10);
        pq.offer(5);
        pq.offer(6);
        pq.offer(5);
        pq.offer(10);
        pq.offer(10);
        pq.offer(6);
        pq.remove(10);
        assertThat(pq.peek()).isEqualTo(5);
        assertThat(pq.peek()).isEqualTo(5);
        assertThat(pq.poll()).isEqualTo(5);
        assertThat(pq.peek()).isEqualTo(5);
        assertThat(pq.poll()).isEqualTo(5);
        assertThat(pq.peek()).isEqualTo(6);
        assertThat(pq.poll()).isEqualTo(6);
        assertThat(pq.peek()).isEqualTo(6);
        assertThat(pq.peek()).isEqualTo(6);
        assertThat(pq.poll()).isEqualTo(6);
        assertThat(pq.peek()).isEqualTo(10);
        assertThat(pq.poll()).isEqualTo(10);
        assertThat(pq.poll()).isEqualTo(10);
        assertTrue(pq.isEmpty());
        assertThat(pq.poll()).isEqualTo(IntPriorityQueue.NO_VALUE);
        assertThat(pq.peek()).isEqualTo(IntPriorityQueue.NO_VALUE);
    }

Domain

Subdomains

Frequently Asked Questions

What does mustSupportDuplicateValues() do?
mustSupportDuplicateValues() is a function in the netty codebase, defined in buffer/src/test/java/io/netty/buffer/IntPriorityQueueTest.java.
Where is mustSupportDuplicateValues() defined?
mustSupportDuplicateValues() is defined in buffer/src/test/java/io/netty/buffer/IntPriorityQueueTest.java at line 119.

Analyze Your Own Codebase

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

Try Supermodel Free