package flow import ( "testing" "github.com/davecgh/go-spew/spew" ) func TestFlowAdd(t *testing.T) { flow := New("干洗") flow.Add(&FlowNode{Name: "干洗01"}) flow.Add(&FlowNode{Name: "干洗02"}) flow.Add(&FlowNode{Name: "干洗03"}) t.Error(spew.Sdump(flow)) }