A backup you never restored is a guess. A real test restore is best, but it needs space and time. borg extract --dry-run is a lighter first step that goes through the motions of a restore and writes nothing.
borg extract --dry-run /path/to/repo::my-files
The docs describe what it does: all extraction steps except writing the output data. That means reading the metadata and data chunks from the repository, checking the hash or HMAC, decrypting and decompressing. If something in the archive cannot be read or fails verification, you find out now and not in the middle of a real restore. Add --list if you want to see the items as they are processed:
borg extract --dry-run --list /path/to/repo::my-files home/USERNAME/src
The path at the end limits it to one folder, so you can check the part you care most about. Paths are literal prefixes by default. For a wildcard the docs say to use another pattern style, for example 'sh:home/USERNAME/src/*.c'.
The caveat is the one in the docs for the real command: borg extract always writes into the current working directory. A dry run writes nothing, but I would get into the habit of changing to an empty, throwaway folder before any real extract, because forgetting that is how files end up where they should not.
Also be honest about what it proves. It reads and verifies the data, which is a good sign, but it does not show that the restored files work in your app. Once in a while I would still restore a real file or a small folder and open it. This page is from the Borg 1.4.5 docs.
Further reading: Borg documentation: borg extract