Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSerializerWithAnyType (0.09 sec)

  1. tests/serializer_test.go

    	}
    
    	AssertEqual(t, result.Roles, data.Roles)
    	AssertEqual(t, result.JobInfo.Location, data.JobInfo.Location)
    }
    
    // Test for: panic when serializer field with any type is nil
    func TestSerializerWithAnyType(t *testing.T) {
    	type ProductWithAny struct {
    		gorm.Model
    		Name string
    		Data any `gorm:"serializer:json"`
    	}
    
    	DB.Migrator().DropTable(&ProductWithAny{})
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Sat Nov 22 03:14:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top