MCPcopy Create free account
hub / github.com/larksuite/cli / TestExitCodeForCategory_UnknownDefaults

Function TestExitCodeForCategory_UnknownDefaults

internal/output/exitcode_test.go:38–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestExitCodeForCategory_UnknownDefaults(t *testing.T) {
39 if got := ExitCodeForCategory(errs.Category("not_a_real_category")); got != ExitInternal {
40 t.Errorf("ExitCodeForCategory(unknown) = %d, want %d (ExitInternal)", got, ExitInternal)
41 }
42}
43
44func TestExitCodeOf_Nil(t *testing.T) {
45 if got := ExitCodeOf(nil); got != 0 {

Callers

nothing calls this directly

Calls 2

CategoryTypeAlias · 0.92
ExitCodeForCategoryFunction · 0.85

Tested by

no test coverage detected