Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for scanned (0.03 sec)

  1. android/guava/src/com/google/common/escape/UnicodeEscaper.java

       *
       * @param csq a sequence of characters
       * @param start the index of the first character to be scanned
       * @param end the index immediately after the last character to be scanned
       * @throws IllegalArgumentException if the scanned sub-sequence of {@code csq} contains invalid
       *     surrogate pairs
       */
      protected int nextEscapeIndex(CharSequence csq, int start, int end) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  2. tests/generics_test.go

    		t.Fatalf("Scan failed: %v, userids %v", err, userIds)
    	}
    
    	if userIds[0].String() != users[0].Name || userIds[1].String() != users[1].Name || userIds[2].String() != users[2].Name {
    		t.Fatalf("wrong uuid scanned")
    	}
    }
    
    func TestGenericsCount(t *testing.T) {
    	ctx := context.Background()
    
    	// Just test that the API can be called
    	_, err := gorm.G[User](DB).Count(ctx, "*")
    	if err != nil {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Nov 02 14:09:18 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  3. tests/serializer_test.go

    	DB.Migrator().DropTable(adaptorSerializerModel(&SerializerStruct{}))
    	if err := DB.Migrator().AutoMigrate(adaptorSerializerModel(&SerializerStruct{})); err != nil {
    		t.Fatalf("no error should happen when migrate scanner, valuer struct, got error %v", err)
    	}
    
    	createdAt := time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC)
    	updatedAt := createdAt.Unix()
    
    	data := SerializerStruct{
    		Name:            []byte("jinzhu"),
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sat Nov 22 03:14:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. schema/field.go

    						}
    
    						if valuer, ok := v.(driver.Valuer); ok {
    							v, _ = valuer.Value()
    						}
    
    						err = fieldValue.Interface().(sql.Scanner).Scan(v)
    					}
    					return
    				}
    			} else if _, ok := fieldValue.Interface().(sql.Scanner); ok {
    				// struct scanner
    				field.Set = func(ctx context.Context, value reflect.Value, v interface{}) (err error) {
    					reflectV := reflect.ValueOf(v)
    					if !reflectV.IsValid() {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sat Nov 22 03:14:36 UTC 2025
    - 32.2K bytes
    - Viewed (0)
  5. scan.go

    				sch, _ = schema.Parse(db.Statement.Dest, db.cacheStore, db.NamingStrategy)
    			}
    
    			if len(columns) == 1 {
    				// Is Pluck
    				if _, ok := reflect.New(reflectValueType).Interface().(sql.Scanner); (reflectValueType != sch.ModelType && ok) || // is scanner
    					reflectValueType.Kind() != reflect.Struct || // is not struct
    					sch.ModelType.ConvertibleTo(schema.TimeReflectType) { // is time
    					sch = nil
    				}
    			}
    
    			// Not Pluck
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  6. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/validation/DefaultSettingsValidator.java

                String fieldName,
                Severity severity,
                String string,
                String sourceHint,
                String banned) {
            if (string != null) {
                for (int i = string.length() - 1; i >= 0; i--) {
                    if (banned.indexOf(string.charAt(i)) >= 0) {
                        addViolation(
                                problems,
                                severity,
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  7. schema/serializer.go

    	SerializeValuer SerializerValuerInterface
    	Destination     reflect.Value
    	Context         context.Context
    	value           interface{}
    	fieldValue      interface{}
    }
    
    // Scan implements sql.Scanner interface
    func (s *serializer) Scan(value interface{}) error {
    	s.value = value
    	return nil
    }
    
    // Value implements driver.Valuer interface
    func (s serializer) Value() (driver.Value, error) {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sun Oct 26 12:29:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ComputationException.java

     *     code that is still catching {@code ComputationException} may need to be updated to catch some
     *     of those types instead. (Note that this type, though deprecated, is not planned to be removed
     *     from Guava.)
     */
    @Deprecated
    @GwtCompatible
    public class ComputationException extends RuntimeException {
      /** Creates a new instance with the given cause. */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java

                                || relocation.global)) {
                    if (relocation.target == SENTINEL) {
                        String message = "The artifact " + original + " has been banned from resolution: "
                                + (relocation.global ? "User global ban" : "User project ban");
                        LOGGER.debug(message);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                    try {
                        cbWithWindow.executeWithCircuitBreaker(() -> {
                            if (iteration % 3 == 0) {
                                throw new RuntimeException("planned failure");
                            }
                            return "success";
                        });
                    } catch (CIFSException e) {
                        // Expected for some iterations
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
Back to top