(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestNew(t *testing.T) { |
| 12 | goman.New(func() { |
| 13 | t.Log("Hello") |
| 14 | |
| 15 | t.Log(goman.List()) |
| 16 | }) |
| 17 | |
| 18 | time.Sleep(1 * time.Second) |
| 19 | t.Log(goman.List()) |
| 20 | |
| 21 | time.Sleep(1 * time.Second) |
| 22 | } |
| 23 | |
| 24 | func TestNewWithArgs(t *testing.T) { |
| 25 | goman.NewWithArgs(func(args ...interface{}) { |