refactor(*): 平台架构 - 拆分后端领域模块并同步插件协议与模型能力
This commit is contained in:
1 parent
916043fb5a
commit
6e5cbc8b05
644 files changed
+62731
-2320
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package app
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestNormalizeEagleItemCollectionsKeepsEmptyArrays(t *testing.T) {
|
||||
item := &EagleItem{}
|
||||
normalizeEagleItemCollections(item)
|
||||
|
||||
if item.FolderIDs == nil || len(item.FolderIDs) != 0 {
|
||||
t.Fatalf("folder IDs = %#v, want a non-nil empty slice", item.FolderIDs)
|
||||
}
|
||||
if item.Tags == nil || len(item.Tags) != 0 {
|
||||
t.Fatalf("tags = %#v, want a non-nil empty slice", item.Tags)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user