mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
35 lines
784 B
Go
35 lines
784 B
Go
package blueprint
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestExecMgr(t *testing.T) {
|
|
var bp Blueprint
|
|
err := bp.Init("E:\\WorkSpace\\c4\\OriginNodeEditor\\json", "E:\\WorkSpace\\c4\\OriginNodeEditor\\vgf", nil, nil)
|
|
if err != nil {
|
|
t.Fatalf("Init failed,err:%v", err)
|
|
}
|
|
|
|
//graphTest2 := bp.Create("testForeach")
|
|
//err = graphTest2.Do(EntranceID_IntParam, 1, 2, 3)
|
|
//if err != nil {
|
|
// t.Fatalf("Do EntranceID_IntParam failed,err:%v", err)
|
|
//}
|
|
|
|
//graphTest2 := bp.Create("test2")
|
|
//
|
|
//err = graphTest2.Do(EntranceID_IntParam, 1, 2, 3)
|
|
//if err != nil {
|
|
// t.Fatalf("Do EntranceID_IntParam failed,err:%v", err)
|
|
//}
|
|
|
|
//graph := bp.Create("test1")
|
|
//err = graph.Do(EntranceID_IntParam, 1, 2, 3)
|
|
//if err != nil {
|
|
// t.Fatalf("do failed,err:%v", err)
|
|
//}
|
|
|
|
//graph.Release()
|
|
}
|