v2 #43

Merged
h4kor merged 41 commits from v2 into main 2023-07-19 19:09:19 +00:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit 34119d5642 - Show all commits

View File

@ -27,3 +27,7 @@ func (e *MockEntry) MetaData() interface{} {
func (e *MockEntry) SetMetaData(metaData interface{}) { func (e *MockEntry) SetMetaData(metaData interface{}) {
e.metaData = metaData.(*MockEntryMetaData) e.metaData = metaData.(*MockEntryMetaData)
} }
func (e *MockEntry) Title() string {
return ""
}

View File

@ -82,6 +82,10 @@ func (e *MockEntry) SetMetaData(metaData interface{}) {
e.metaData = *metaData.(*MockEntryMetaData) e.metaData = *metaData.(*MockEntryMetaData)
} }
func (e *MockEntry) Title() string {
return ""
}
func TestFieldToFormField(t *testing.T) { func TestFieldToFormField(t *testing.T) {
field := reflect.TypeOf(&MockEntryMetaData{}).Elem().Field(0) field := reflect.TypeOf(&MockEntryMetaData{}).Elem().Field(0)
formField, err := editor.FieldToFormField(field) formField, err := editor.FieldToFormField(field)