MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestNew

Function TestNew

internal/goman/lib_test.go:11–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func 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
24func TestNewWithArgs(t *testing.T) {
25 goman.NewWithArgs(func(args ...interface{}) {

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
ListFunction · 0.92
LogMethod · 0.80

Tested by

no test coverage detected