SonarCloud does not generate the coverage data itself. It simply imports reports that you generate using some external tool. For example, if your project is Java-based you would use Jacoco to generate the report and then configure SC to import that report. See for example:
There are also other guides for specific coverage issues. Take a look here: