Home / Function/ commonSuffixOfLengthTest() — netty Function Reference

commonSuffixOfLengthTest() — netty Function Reference

Architecture documentation for the commonSuffixOfLengthTest() function in StringUtilTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  128c83a4_9654_888e_9429_32db2c9d38bc["commonSuffixOfLengthTest()"]
  8a8ff062_3462_cc50_2d54_f42c40f72bfa["StringUtilTest"]
  128c83a4_9654_888e_9429_32db2c9d38bc -->|defined in| 8a8ff062_3462_cc50_2d54_f42c40f72bfa
  0f361150_635f_f859_038d_ed9351229c2b["checkNotCommonSuffix()"]
  128c83a4_9654_888e_9429_32db2c9d38bc -->|calls| 0f361150_635f_f859_038d_ed9351229c2b
  9bbfa760_1f83_961f_9f89_72fc98c13fd0["checkCommonSuffix()"]
  128c83a4_9654_888e_9429_32db2c9d38bc -->|calls| 9bbfa760_1f83_961f_9f89_72fc98c13fd0
  style 128c83a4_9654_888e_9429_32db2c9d38bc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/StringUtilTest.java lines 119–146

    @Test
    public void commonSuffixOfLengthTest() {
        // negative length suffixes are never common
        checkNotCommonSuffix("abc", "abc", -1);

        // null has no suffix
        checkNotCommonSuffix("abc", null, 0);
        checkNotCommonSuffix(null, null, 0);

        // any non-null string has 0-length suffix
        checkCommonSuffix("abc", "xx", 0);

        checkCommonSuffix("abc", "abc", 0);
        checkCommonSuffix("abc", "abc", 1);
        checkCommonSuffix("abc", "abc", 2);
        checkCommonSuffix("abc", "abc", 3);
        checkNotCommonSuffix("abc", "abc", 4);

        checkCommonSuffix("abcd", "cd", 1);
        checkCommonSuffix("abcd", "cd", 2);
        checkNotCommonSuffix("abcd", "cd", 3);

        checkCommonSuffix("abcd", "axcd", 1);
        checkCommonSuffix("abcd", "axcd", 2);
        checkNotCommonSuffix("abcd", "axcd", 3);

        checkNotCommonSuffix("abcx", "abcy", 1);
    }

Domain

Subdomains

Frequently Asked Questions

What does commonSuffixOfLengthTest() do?
commonSuffixOfLengthTest() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/StringUtilTest.java.
Where is commonSuffixOfLengthTest() defined?
commonSuffixOfLengthTest() is defined in common/src/test/java/io/netty/util/internal/StringUtilTest.java at line 119.
What does commonSuffixOfLengthTest() call?
commonSuffixOfLengthTest() calls 2 function(s): checkCommonSuffix, checkNotCommonSuffix.

Analyze Your Own Codebase

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

Try Supermodel Free