code: func (m *MockPacketEncoder) Encode(typ packet.Type, data []byte) ([]byte, error) {
  	ret := m.ctrl.Call(m, "Encode", typ, data)
  	ret0, _ := ret[0].([]byte)
  	ret1, _ := ret[1].(error)
  	return ret0, ret1
  }
docs: // Encode mocks base method