(t *testing.T)
| 109 | } |
| 110 | |
| 111 | func 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 |