Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSerializerZeroValue (0.11 sec)

  1. tests/serializer_test.go

    		t.Fatalf("failed to update data's roles, got error %v", err)
    	}
    
    	if err := DB.First(&result, data.ID).Error; err != nil {
    		t.Fatalf("failed to query data, got error %v", err)
    	}
    }
    
    func TestSerializerZeroValue(t *testing.T) {
    	schema.RegisterSerializer("custom", NewCustomSerializer("hello"))
    	DB.Migrator().DropTable(adaptorSerializerModel(&SerializerStruct{}))
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Apr 21 14:09:38 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top