cxl-micron-reskit / famfs

This is the user space repo for famfs, the fabric-attached memory file system
Apache License 2.0
34 stars 9 forks source link

Code Coverage: Umbrella issue #17

Closed jagalactic closed 4 months ago

jagalactic commented 7 months ago

We use gcov to test code coverage. We are currently (and will probably continue to) use a combination of smoke and unit tests to measure "official" coverage (see https://github.com/cxl-micron-reskit/famfs/blob/master/markdown/getting-started.md).

But I would like to see our unit-test-only increase for various reasons. One is that smoke tests may not be runnable on Github, since they need an actual dax device. Moreover, there are some inherently hard-to-cover branches - mmap failures and file open failures are top of the list here. We probably need to enable mocking for open and mmap here in order to properly test failures in those functions.

So please work on unit (or smoke) test code coverage improvements, but especially unit test coverage improvements and send PRs.

Better unit test coverage will be good since enabling Github coverage reporting probably can't include coverage from smoke tests (but please correct me if this seems wrong).

jagalactic commented 7 months ago

Here are some notes I made about "low hanging fruit" to improve coverage...

jagalactic commented 4 months ago

Fix was merged