Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 310 for trong (0.36 sec)

  1. tests/generics_test.go

    	sql := DB.ToSQL(func(tx *gorm.DB) *gorm.DB {
    		gorm.G[User](tx).Limit(10).Find(ctx)
    		return tx
    	})
    
    	if !regexp.MustCompile("SELECT \\* FROM .users..* 10").MatchString(sql) {
    		t.Errorf("ToSQL: got wrong sql with Generics API %v", sql)
    	}
    }
    
    func TestGenericsScanUUID(t *testing.T) {
    	ctx := context.Background()
    	users := []User{
    		{Name: uuid.NewString(), Age: 21},
    		{Name: uuid.NewString(), Age: 22},
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
  2. src/test/java/jcifs/spnego/NegTokenInitTest.java

            assertFalse(init.getContextFlag(NegTokenInit.CONFIDENTIALITY));
            assertEquals(NegTokenInit.INTEGRITY, init.getContextFlags());
        }
    
        @Test
        @DisplayName("Parse rejects wrong SPNEGO OID")
        void testParseRejectsWrongOid() throws Exception {
            byte[] token = buildInitToken(new ASN1ObjectIdentifier[] { OID_KRB }, 0, null, null, false, "1.2.840.113554.1.2.2", // Kerberos OID instead of SPNEGO OID
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

       * getChecked(future, WillBeUnloadedException.class)}, and returns the loader. The caller can then
       * test that the {@code ClassLoader} can still be GCed. The test amounts to a test that {@code
       * getChecked} holds no strong references to the class.
       */
      private WeakReference<?> doTestClassUnloading() throws Exception {
        URLClassLoader shadowLoader = new URLClassLoader(parseJavaClassPath(), null);
        @SuppressWarnings("unchecked")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacLogonInfoTest.java

            // Should validate string length
            String result = unicodeString.check(testString);
            assertEquals(testString, result);
    
            // Should reject wrong length
            assertThrows(PACDecodingException.class, () -> {
                unicodeString.check("WRONGLENGTH");
            });
        }
    
        @Test
        @DisplayName("Test empty arrays using mock")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

          return o == this || o == null;
        }
    
        @Override
        public int hashCode() {
          return 0;
        }
      }
    
      /** Test class that returns true even if the test object is of the wrong class */
      private static class InvalidEqualsIncompatibleClassObject {
    
        @Override
        public boolean equals(@Nullable Object o) {
          return o != null;
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

                    return "all".equals(target);
                }
            });
    
            int count = crawlJob.getRunningJobCount();
            assertEquals(0, count);
        }
    
        // Test getRunningJobCount with wrong target
        public void test_getRunningJobCount_wrongTarget() {
            // Skip this test - requires complex DB setup
            if (true)
                return;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 25K bytes
    - Viewed (0)
  7. docs/en/docs/async.md

    Details about the `async def` syntax for *path operation functions* and some background about asynchronous code, concurrency, and parallelism.
    
    ## In a hurry? { #in-a-hurry }
    
    <abbr title="too long; didn't read"><strong>TL;DR:</strong></abbr>
    
    If you are using third party libraries that tell you to call them with `await`, like:
    
    ```Python
    results = await some_library()
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 24K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/lex/input.go

    		if tok == ')' {
    			break
    		}
    	}
    	// Zero-argument macros are tricky.
    	if len(macro.args) == 0 && len(args) == 1 && args[0] == nil {
    		args = nil
    	} else if len(args) != len(macro.args) {
    		in.Error("wrong arg count for macro", macro.name)
    	}
    	argMap := make(map[string][]Token)
    	for i, arg := range args {
    		argMap[macro.args[i]] = arg
    	}
    	return argMap
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Sep 06 13:17:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. cmd/encryption-v1_test.go

    func TestDecryptObjectInfo(t *testing.T) {
    	for i, test := range decryptObjectMetaTests {
    		if encrypted, err := DecryptObjectInfo(&test.info, test.request); err != test.expErr {
    			t.Errorf("Test %d: Decryption returned wrong error code: got %d , want %d", i, err, test.expErr)
    		} else if _, enc := crypto.IsEncrypted(test.info.UserDefined); encrypted && enc != encrypted {
    			t.Errorf("Test %d: Decryption thinks object is encrypted but it is not", i)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 19.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

        @Test
        void testGetSecurityWithWrongInfoType() throws Exception {
            // Test when info is not ShareInfo502
            srvsvc.ShareInfo0 info0 = new srvsvc.ShareInfo0();
    
            // Replace info field with wrong type
            Field infoField = msrpcShareGetInfo.getClass().getSuperclass().getDeclaredField("info");
            infoField.setAccessible(true);
            infoField.set(msrpcShareGetInfo, info0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
Back to top