MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / TestMain

Function TestMain

cli/main_test.go:26–32  ·  view source on GitHub ↗

e.g. https://github.com/spf13/cobra/blob/master/command_test.go

(t *testing.T)

Source from the content-addressed store, hash-verified

24
25// e.g. https://github.com/spf13/cobra/blob/master/command_test.go
26func TestMain(t *testing.T) {
27 bs := []byte{}
28 fmt.Print("response:" + string(bs))
29
30 // 基本的测试,查看命令是否可以正常跑起来
31 main()
32}

Callers

nothing calls this directly

Calls 1

mainFunction · 0.85

Tested by

no test coverage detected