Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for TestFillSmallerStruct (0.14 seconds)

  1. tests/query_test.go

    		totalBatch += batch
    		return nil
    	}); result.Error != gorm.ErrPrimaryKeyRequired {
    		t.Fatal("expected errors to have occurred, but nothing happened")
    	}
    }
    
    func TestFillSmallerStruct(t *testing.T) {
    	user := User{Name: "SmallerUser", Age: 100}
    	DB.Save(&user)
    	type SimpleUser struct {
    		ID        int64
    		Name      string
    		UpdatedAt time.Time
    		CreatedAt time.Time
    	}
    
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Tue Jul 22 06:21:04 GMT 2025
    - 51K bytes
    - Click Count (0)
Back to Top