mkfs.ext4 (or mkfs -t ext4) lays down fresh metadata and destroys whatever was there — the reason it warns when the device is mounted. badblocks tests the media underneath, e2label only renames a filesystem that already exists, and mkswap does initialise the partition, but as swap rather than as a mountable filesystem.
Official docs