mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
@@ -2,20 +2,20 @@ package rule_engine
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"pandax/pkg/rule_engine/message"
|
||||
"pandax/pkg/rule_engine/nodes"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNewRuleChainInstance(t *testing.T) {
|
||||
buf, err := ioutil.ReadFile("./manifest/manifest_sample.json")
|
||||
buf, err := os.ReadFile("./manifest/manifest_sample.json")
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
instance, errs := NewRuleChainInstance("11", buf)
|
||||
if len(errs) > 0 {
|
||||
t.Error(errs[0])
|
||||
instance, err := NewRuleChainInstance("11", buf)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
metadata := message.Metadata{
|
||||
|
||||
Reference in New Issue
Block a user