MCPcopy
hub / github.com/uber-go/fx / TestAnnotationError

Function TestAnnotationError

app_internal_test.go:111–119  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

109}
110
111func TestAnnotationError(t *testing.T) {
112 wantErr := errors.New("want error")
113 err := &annotationError{
114 err: wantErr,
115 }
116 require.Error(t, err)
117 assert.ErrorIs(t, err, wantErr)
118 assert.Contains(t, err.Error(), wantErr.Error())
119}
120
121// TestStartDoesNotRegisterSignals verifies that signal.Notify is not called
122// when a user starts an app. signal.Notify should only be called when the

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected