- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestDefaultValue (0.21 sec)
-
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"`
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Mon Apr 08 03:29:55 GMT 2024 - 2.3K bytes - Viewed (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);
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.9K bytes - Viewed (0)