(t *testing.T)
| 1753 | } |
| 1754 | |
| 1755 | func Test_Observable_Send(t *testing.T) { |
| 1756 | defer goleak.VerifyNone(t) |
| 1757 | ctx, cancel := context.WithCancel(context.Background()) |
| 1758 | defer cancel() |
| 1759 | ch := make(chan Item, 10) |
| 1760 | testObservable(ctx, 1, 2, 3, errFoo).Send(ch) |
| 1761 | assert.Equal(t, Of(1), <-ch) |
| 1762 | assert.Equal(t, Of(2), <-ch) |
| 1763 | assert.Equal(t, Of(3), <-ch) |
| 1764 | assert.Equal(t, Error(errFoo), <-ch) |
| 1765 | } |
| 1766 | |
| 1767 | type message struct { |
| 1768 | id int |
nothing calls this directly
no test coverage detected
searching dependent graphs…