It’s probably not strictly necessary anymore today (as you say, I’m pretty sure I’ve had a ticket across two carries without a codeshare number), but maybe it was at some point?
That's something very different from a single airline issuing a ticket for a complete itinerary, which importantly makes them responsible for getting you to your final destination in case of missed connections, checking your baggage through etc.
If you still have the confirmations or boarding passes, you could check for the three-digit numeric e-ticket number prefix, which defines which carrier actually issued the ticket.
(BTW: I've had multiairline itineraries many times. I think a lot of airlines are perfectly happy to do it because they can't fly domestic in that country and the domestic airline doesn't fly international. Also, there have been times when I haven't been able to, and I've been worried about it, and I got to the airport for manual checkin, and they've said "oh, i see you have an ongoing flight to such-and-such, do you want me to check you in for the whole journey?")