Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testEncoding (0.1 sec)

  1. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

      private static void testEncodingWithSeparators(
          BaseEncoding encoding, String decoded, String encoded) {
        testEncoding(encoding, decoded, encoded);
    
        // test separators work
        for (int sepLength = 3; sepLength <= 5; sepLength++) {
          for (String separator : ImmutableList.of(",", "\n", ";;", "")) {
            testEncoding(
                encoding.withSeparator(separator, sepLength),
                decoded,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 24.6K bytes
    - Viewed (0)
  2. pilot/pkg/config/kube/ingress/conversion_test.go

    			t.Errorf("decodeIngressRuleName(%q) => (%q, %d, %d), want (%q, %d, %d)",
    				encoded,
    				ingressName, ruleNum, pathNum,
    				c.ingressName, c.ruleNum, c.pathNum,
    			)
    		}
    	}
    }
    
    func TestEncoding(t *testing.T) {
    	if got := EncodeIngressRuleName("name", 3, 5); got != "name-3-5" {
    		t.Errorf("unexpected ingress encoding %q", got)
    	}
    
    	cases := []string{
    		"name",
    		"name-path-5",
    		"name-3-path",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 19 18:20:34 UTC 2023
    - 14.9K bytes
    - Viewed (0)
Back to top