规则引擎

This commit is contained in:
PandaGoAdmin
2023-03-01 16:55:47 +08:00
parent 8e854ce527
commit 1be2dc7537
53 changed files with 1104 additions and 418 deletions

View File

@@ -0,0 +1,17 @@
package rule_engine
import (
"io/ioutil"
"testing"
)
func TestNewRuleChainInstance(t *testing.T) {
buf, err := ioutil.ReadFile("./manifest/manifest_sample.json")
if err != nil {
t.Error(err)
}
_, errs := NewRuleChainInstance(buf)
if len(errs) > 0 {
t.Error(errs[0])
}
}