yao/flow/flow_test.go
2023-02-01 17:25:11 +08:00

22 lines
342 B
Go

package flow
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/yaoapp/gou/flow"
"github.com/yaoapp/yao/config"
)
func TestLoad(t *testing.T) {
Load(config.Conf)
check(t)
}
func check(t *testing.T) {
keys := []string{}
for key := range flow.Flows {
keys = append(keys, key)
}
assert.Equal(t, 26, len(keys))
}