Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestClone (0.11 sec)

  1. src/test/java/jcifs/smb1/util/HMACT64Test.java

            byte[] buffer = new byte[10];
            // Should throw exception when buffer is too small
            assertThrows(IllegalStateException.class, () -> hmac.engineDigest(buffer, 0, 10));
        }
    
        @Test
        void testClone() {
            // Test clone() method
            HMACT64 originalHmac = new HMACT64(TEST_KEY);
            originalHmac.engineUpdate(TEST_DATA, 0, TEST_DATA.length / 2);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/HMACT64Test.java

                HMACT64 hmac = new HMACT64(TEST_KEY);
                assertThrows(IllegalStateException.class, () -> hmac.engineDigest(new byte[10], 0, 10));
            }
        }
    
        @Test
        void testClone() throws NoSuchAlgorithmException, CloneNotSupportedException {
            // Test clone() method
            try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    			buf := make([]byte, 1<<16)
    			for i := 0; i < len(buf); i += skip {
    				buf[i] = 1
    			}
    			for i := 0; i < b.N; i++ {
    				Index(buf, key)
    			}
    		})
    	}
    }
    
    func TestClone(t *testing.T) {
    	var cloneTests = [][]byte{
    		[]byte(nil),
    		[]byte{},
    		Clone([]byte{}),
    		[]byte(strings.Repeat("a", 42))[:0],
    		[]byte(strings.Repeat("a", 42))[:0:0],
    		[]byte("short"),
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
Back to top