(c *C)
| 15 | var _ = Suite(&StopEventSuite{}) |
| 16 | |
| 17 | func (s *StopEventSuite) TestStopEvent(c *C) { |
| 18 | s.WriteEvent( |
| 19 | mysql_proto.LogEventType_STOP_EVENT, |
| 20 | uint16(0), |
| 21 | []byte{}) |
| 22 | |
| 23 | event, err := s.NextEvent() |
| 24 | c.Assert(err, IsNil) |
| 25 | |
| 26 | c.Assert(event, NotNil) |
| 27 | _, ok := event.(*StopEvent) |
| 28 | c.Assert(ok, IsTrue) |
| 29 | } |
nothing calls this directly
no test coverage detected