33 lines
581 B
Go
33 lines
581 B
Go
package robot_test
|
|
|
|
import (
|
|
"fmt"
|
|
"go_dreamfactory/cmd/robot"
|
|
"sync"
|
|
"testing"
|
|
)
|
|
|
|
func TestJob(t *testing.T) {
|
|
// link := robot.NewLinkCase()
|
|
link := robot.NewDefault(&robot.TestCase{Desc: "login"})
|
|
link.Append(&robot.TestCase{Desc: "aa"})
|
|
// link.Append(&robot.TestCase{Desc: "bb"})
|
|
|
|
// link.Unshift(&robot.TestCase{Desc: "cc"})
|
|
// link.Unshift(&robot.TestCase{Desc: "dd"})
|
|
|
|
// link.Insert(1, &robot.TestCase{Desc: "ee"})
|
|
cur := link.Head
|
|
for cur != nil {
|
|
fmt.Println(cur)
|
|
cur = cur.Next
|
|
}
|
|
}
|
|
|
|
func TestGJo(t *testing.T) {
|
|
var wg sync.WaitGroup
|
|
|
|
wg.Add(1)
|
|
|
|
}
|