Home / Function/ testRandom() — netty Function Reference

testRandom() — netty Function Reference

Architecture documentation for the testRandom() function in SnappyIntegrationTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7dd8e131_e55e_3e47_5adc_685c69be3e54["testRandom()"]
  cef83d83_2017_bca6_9ccd_d4bdc8b547d8["SnappyIntegrationTest"]
  7dd8e131_e55e_3e47_5adc_685c69be3e54 -->|defined in| cef83d83_2017_bca6_9ccd_d4bdc8b547d8
  69db0777_bef7_278b_e09b_dc0bee82f08e["testWithSeed()"]
  7dd8e131_e55e_3e47_5adc_685c69be3e54 -->|calls| 69db0777_bef7_278b_e09b_dc0bee82f08e
  12c4d996_4802_8473_a6c8_f5be8f6a8edd["printSeedAsTest()"]
  7dd8e131_e55e_3e47_5adc_685c69be3e54 -->|calls| 12c4d996_4802_8473_a6c8_f5be8f6a8edd
  style 7dd8e131_e55e_3e47_5adc_685c69be3e54 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyIntegrationTest.java lines 85–102

    @Test
    public void testRandom() throws Throwable {
        for (int i = 0; i < RANDOM_RUNS; i++) {
            long seed = rand.nextLong();
            if (seed < 0) {
                // Use only positive seed to get prettier test name. :-)
                continue;
            }

            try {
                testWithSeed(seed);
            } catch (Throwable t) {
                System.out.println("Failed with random seed " + seed + ". Here is a test for it:\n");
                printSeedAsTest(seed);
                throw t;
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testRandom() do?
testRandom() is a function in the netty codebase, defined in codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyIntegrationTest.java.
Where is testRandom() defined?
testRandom() is defined in codec-compression/src/test/java/io/netty/handler/codec/compression/SnappyIntegrationTest.java at line 85.
What does testRandom() call?
testRandom() calls 2 function(s): printSeedAsTest, testWithSeed.

Analyze Your Own Codebase

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

Try Supermodel Free