Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for abcd (0.27 sec)

  1. utils/utils_test.go

    		{"uint8", uint8(math.MaxUint8), "255"},
    		{"uint16", uint16(math.MaxUint16), "65535"},
    		{"uint32", uint32(math.MaxUint32), "4294967295"},
    		{"uint64", uint64(math.MaxUint64), "18446744073709551615"},
    		{"string", "abc", "abc"},
    		{"other", true, ""},
    	}
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			if out := ToString(test.in); test.out != out {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Feb 19 03:42:25 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. schema/naming_test.go

    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue May 30 02:00:48 GMT 2023
    - 7K bytes
    - Viewed (0)
  3. tests/migrate_test.go

    	if DB.Dialector.Name() != "mysql" {
    		t.Skip()
    	}
    
    	type MyTable struct {
    		Def string `gorm:"size:512;index:idx_def,unique"`
    		Abc string `gorm:"size:65000000"`
    	}
    
    	DB.Migrator().DropTable("my_tables")
    
    	sql := "CREATE TABLE `my_tables` (`def` varchar(512),`abc` longtext,UNIQUE INDEX `idx_def` (`def`))"
    	if err := DB.Exec(sql).Error; err != nil {
    		t.Errorf("Failed, got error: %v", err)
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top