- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for TestDefaultValue (0.05 seconds)
-
tests/default_value_test.go
package tests_test import ( "testing" "time" "gorm.io/gorm" ) func TestDefaultValue(t *testing.T) { type Harumph struct { gorm.Model Email string `gorm:"not null;index:,unique"` Name string `gorm:"notNull;default:foo"` Name2 string `gorm:"size:233;not null;default:'foo'"` Name3 string `gorm:"size:233;notNull;default:''"` Age int `gorm:"default:18"`
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Apr 08 03:29:55 GMT 2024 - 2.3K bytes - Click Count (0) -
src/test/java/org/codelibs/core/lang/ObjectUtilTest.java
} /** * Test method for * {@link org.codelibs.core.lang.ObjectUtil#defaultValue(Object, Object)} . */ @Test public void testDefaultValue() { final Hoge hoge = new Hoge(); assertSame(ObjectUtil.defaultValue(null, hoge), hoge); assertSame(ObjectUtil.defaultValue(hoge, null), hoge);Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2.9K bytes - Click Count (0)