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

Method WriteEvent

database/binlog/event_test.go:38–55  ·  view source on GitHub ↗
(
	eventType mysql_proto.LogEventType_Type,
	flags uint16,
	data []byte)

Source from the content-addressed store, hash-verified

36}
37
38func (s *EventParserSuite) WriteEvent(
39 eventType mysql_proto.LogEventType_Type,
40 flags uint16,
41 data []byte) {
42
43 eventBytes, err := CreateEventBytes(
44 uint32(0), // timestamp
45 uint8(eventType),
46 uint32(1), // server id
47 uint32(1234), // next position
48 flags,
49 data)
50 if err != nil {
51 panic(err)
52 }
53
54 s.Write(eventBytes)
55}
56
57func (s *EventParserSuite) NextEvent() (Event, error) {
58 return s.reader.NextEvent()

Callers 15

TestBasicMethod · 0.45
TestTableWithMetadataMethod · 0.45
TestAllColumnTypesMethod · 0.45
TestStopEventMethod · 0.45
Test55FDEMethod · 0.45
Test56FDEMethod · 0.45
Test55XidMethod · 0.45
Test56XidMethod · 0.45
TestWriteRowsV1Method · 0.45
TestWriteRowsV2Method · 0.45
TestUpdateRowsV1Method · 0.45
TestUpdateRowsV2Method · 0.45

Calls 2

WriteMethod · 0.95
CreateEventBytesFunction · 0.85

Tested by

no test coverage detected