MCPcopy Index your code
hub / github.com/voidint/g / Test_errstring

Function Test_errstring

cli/cli_test.go:120–125  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

118}
119
120func Test_errstring(t *testing.T) {
121 t.Run("返回错误字符串", func(t *testing.T) {
122 assert.Equal(t, "", errstring(nil))
123 assert.Equal(t, "[g] Hello world", errstring(errors.New("hello world")))
124 })
125}

Callers

nothing calls this directly

Calls 1

errstringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…