Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,802 for gophers (0.04 sec)

  1. cmd/common-main_test.go

    	testCases := []struct {
    		content       string
    		expectedErr   bool
    		expectedValue string
    	}{
    		{
    			"value\n",
    			false,
    			"value",
    		},
    		{
    			" \t\n Hello, Gophers \n\t\r\n",
    			false,
    			"Hello, Gophers",
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run("", func(t *testing.T) {
    			tmpfile, err := os.CreateTemp(t.TempDir(), "testfile")
    			if err != nil {
    				t.Error(err)
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  2. src/archive/zip/writer_test.go

    type WriteTest struct {
    	Name   string
    	Data   []byte
    	Method uint16
    	Mode   fs.FileMode
    }
    
    var writeTests = []WriteTest{
    	{
    		Name:   "foo",
    		Data:   []byte("Rabbits, guinea pigs, gophers, marsupial rats, and quolls."),
    		Method: Store,
    		Mode:   0666,
    	},
    	{
    		Name:   "bar",
    		Data:   nil, // large data set in the test
    		Method: Deflate,
    		Mode:   0644,
    	},
    	{
    		Name:   "setuid",
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jan 28 04:20:09 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  3. src/bytes/example_test.go

    		fmt.Printf("Cut(%q, %q) = %q, %q, %v\n", s, sep, before, after, found)
    	}
    	show("Gopher", "Go")
    	show("Gopher", "ph")
    	show("Gopher", "er")
    	show("Gopher", "Badger")
    	// Output:
    	// Cut("Gopher", "Go") = "", "pher", true
    	// Cut("Gopher", "ph") = "Go", "er", true
    	// Cut("Gopher", "er") = "Goph", "", true
    	// Cut("Gopher", "Badger") = "Gopher", "", false
    }
    
    func ExampleCutPrefix() {
    	show := func(s, prefix string) {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon May 12 16:07:54 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/resources/web-platform-test-urltestdata.txt

    httpa://foo:80/  s:httpa p://foo:80/
    http://foo:-80/
    https://foo:443/  s:https h:foo p:/
    https://foo:80/  s:https h:foo port:80 p:/
    ftp://foo:21/  s:ftp h:foo p:/
    ftp://foo:80/  s:ftp h:foo port:80 p:/
    gopher://foo:70/  s:gopher h:foo p:/
    gopher://foo:443/  s:gopher h:foo port:443 p:/
    ws://foo:80/  s:ws h:foo p:/
    ws://foo:81/  s:ws h:foo port:81 p:/
    ws://foo:443/  s:ws h:foo port:443 p:/
    ws://foo:815/  s:ws h:foo port:815 p:/
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/crypto/CachedCipher.java

         */
        protected String charsetName = CoreLibConstants.UTF_8;
    
        /**
         * The queue of ciphers for encryption.
         */
        protected Queue<Cipher> encryptoQueue = new ConcurrentLinkedQueue<>();
    
        /**
         * The queue of ciphers for decryption.
         */
        protected Queue<Cipher> decryptoQueue = new ConcurrentLinkedQueue<>();
    
        /**
         * Encrypts the given data.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. cmd/sftp-server.go

    	ssh.KeyAlgoSKED25519, ssh.KeyAlgoSKECDSA256,
    	ssh.KeyAlgoECDSA256, ssh.KeyAlgoECDSA384, ssh.KeyAlgoECDSA521,
    	ssh.KeyAlgoRSASHA256, ssh.KeyAlgoRSASHA512, ssh.KeyAlgoRSA,
    	ssh.KeyAlgoDSA,
    }
    
    // supportedCiphers lists ciphers we support but might not recommend.
    // https://cs.opensource.google/go/x/crypto/+/refs/tags/v0.22.0:ssh/common.go;l=28
    var supportedCiphers = []string{
    	"aes128-ctr", "aes192-ctr", "aes256-ctr",
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

            void testConstructorWithConfigAndCiphers() {
                int[] ciphers = { EncryptionNegotiateContext.CIPHER_AES128_CCM, EncryptionNegotiateContext.CIPHER_AES128_GCM };
    
                EncryptionNegotiateContext context = new EncryptionNegotiateContext(mockConfig, ciphers);
    
                assertNotNull(context);
                assertArrayEquals(ciphers, context.getCiphers());
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java

        private int[] ciphers;
    
        /**
         * Constructs an encryption negotiate context.
         *
         * @param config the configuration (currently unused)
         * @param ciphers array of encryption cipher IDs to negotiate
         */
        public EncryptionNegotiateContext(final Configuration config, final int ciphers[]) {
            this.ciphers = ciphers;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

            void testConstructorWithParameters() {
                int[] ciphers = { EncryptionNegotiateContext.CIPHER_AES128_CCM, EncryptionNegotiateContext.CIPHER_AES128_GCM };
    
                context = new EncryptionNegotiateContext(mockConfig, ciphers);
    
                assertEquals(EncryptionNegotiateContext.NEGO_CTX_ENC_TYPE, context.getContextType());
                assertArrayEquals(ciphers, context.getCiphers());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/FileTypeHelperTest.java

            assertEquals("others", fileTypeHelper.get("non/existent"));
        }
    
        public void test_get_withNullMimetype() {
            assertEquals("others", fileTypeHelper.get(null));
        }
    
        public void test_get_withEmptyMimetype() {
            assertEquals("others", fileTypeHelper.get(""));
            assertEquals("others", fileTypeHelper.get(" "));
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top