mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
18 lines
284 B
Go
18 lines
284 B
Go
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])
|
|
}
|
|
}
|