Skip to content

Increase FileSystemStore Unittest coverage #14644

Open
@rajkan01

Description

@rajkan01

Description of defect

Summarized the test coverage report in the below table:

FileSystem % covered Refer to Unit under test
FileSystemStore.cpp 67 index.storage_kvstore_filesystemstore_source_FileSystemStore.pdf
littlefs/littlefs/lfs.c 55 index.storage_filesystem_littlefs_littlefs_lfs.c.html.pdf
littlefs/source/LittleFileSystem.cpp 61 index.storage_filesystem_littlefs_source_LittleFileSystem.cp.pdf
filesystem/source/Dir.cpp 53 index.storage_filesystem_source_Dir.cpp.html.pdf
filesystem/source/File.cpp 58 index.storage_filesystem_source_File.cpp.html.pdf
filesystem/source/FileSystem.cpp 4 index.storage_filesystem_source_FileSystem.cpp.html.pdf

Note:
Above listed c and cpp files has a single unit test file https://github.com/ARMmbed/mbed-os/blob/master/storage/kvstore/filesystemstore/tests/UNITTESTS/FileSystemStore/moduletest.cpp to test it needs complete refactoring or extend to increase the code coverage

Target(s) affected by this defect ?

N/A

Toolchain(s) (name and version) displaying this defect ?

N/A

What version of Mbed-os are you using (tag or sha) ?

Latest

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

N/A

How is this defect reproduced ?

View test coverage report

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions