It is unlawful to drive alongside a motorcycle in the same lane.

You must never attempt to share a lane with a motorcyclist, even if it looks like there is enough room to do so. Motorcyclists need to have a full lane width to be able to maneuver safely.
DMV Writen Test