IntelLabs / IntelLabs/vdms

Add the corresponding unit tests for the new exceptions added to the code

Open
#270 1 comment 0 reactions 0 assignees View on GitHub
Enhancement
Dominant language
C++
Stars
93
Forks
34
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
New exceptions were added to the code for handling some errors which could happen under certain specific situations.

**Describe the solution you'd like**
Please add the corresponding unit tests for testing those new exceptions which were added to the code

**Additional context**
Due to the difficulty of testing those new exceptions, it could be needed the usage of GMock library for Mocking calls to functions/methods. Also is suggested the refactoring of some methods to remove the current dependencies injection which exists in the code, and create new util functions to do the methods/function shorter (100 lines as maximum). Finally, if it is possible then create Interfaces for the current classes and change the current methods to virtual methods, that will make the methods easier to be mocked

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.