MCPcopy
hub / github.com/dropbox/godropbox / TestStopEvent

Method TestStopEvent

database/binlog/stop_event_test.go:17–29  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

15var _ = Suite(&StopEventSuite{})
16
17func (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}

Callers

nothing calls this directly

Calls 2

NextEventMethod · 0.65
WriteEventMethod · 0.45

Tested by

no test coverage detected