mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-23 18:25:36 -04:00
21 lines
342 B
Go
21 lines
342 B
Go
package bundle_entities
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/langgenius/dify-plugin-daemon/internal/utils/parser"
|
|
)
|
|
|
|
func TestAvoidNilTags(t *testing.T) {
|
|
yaml := `name: test
|
|
`
|
|
bundle, err := parser.UnmarshalYamlBytes[Bundle]([]byte(yaml))
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
if bundle.Tags == nil {
|
|
t.Fatal("tags should not be nil")
|
|
}
|
|
}
|