Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/spf13/cobra
/ assertNoErr
Function
assertNoErr
cobra_test.go:27–31 ·
view source on GitHub ↗
(t *testing.T, e error)
Source
from the content-addressed store, hash-verified
25
)
26
27
func
assertNoErr(t *testing.T, e error) {
28
if
e != nil {
29
t.Error(e)
30
}
31
}
32
33
func
TestAddTemplateFunctions(t *testing.T) {
34
AddTemplateFunc(
"t"
,
func
() bool {
return
true })
Callers
15
TestCompleteNoDesCmdInFishScript
Function · 0.70
TestCompleteCmdInFishScript
Function · 0.70
TestProgWithDash
Function · 0.70
TestProgWithColon
Function · 0.70
TestFishCompletionNoActiveHelp
Function · 0.70
TestGenFishCompletionFile
Function · 0.70
TestBashCompletionV2WithActiveHelp
Function · 0.70
TestPwshCompletionNoActiveHelp
Function · 0.70
TestRequiredFlagNameCompletionInGo
Function · 0.70
TestFlagFileExtFilterCompletionInGo
Function · 0.70
TestFlagDirFilterCompletionInGo
Function · 0.70
TestValidArgsFuncInBashScript
Function · 0.70
Calls
1
Error
Method · 0.80
Tested by
no test coverage detected