MCPcopy
hub / github.com/yuk7/wsldl / TestFormatError

Function TestFormatError

src/lib/errutil/errutil_test.go:74–83  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

72}
73
74func TestFormatError(t *testing.T) {
75 t.Parallel()
76
77 if got := FormatError(nil); got != "ERR: unknown error" {
78 t.Fatalf("FormatError(nil) = %q, want %q", got, "ERR: unknown error")
79 }
80 if got := FormatError(errors.New("boom")); got != "ERR: boom" {
81 t.Fatalf("FormatError(non-nil) = %q, want %q", got, "ERR: boom")
82 }
83}
84
85func TestMustExecutable(t *testing.T) {
86 if p := MustExecutable(); p == "" {

Callers

nothing calls this directly

Calls 1

FormatErrorFunction · 0.85

Tested by

no test coverage detected