FTP: Add test coverage for two remaining uncovered API methods
#2,989 opened on Jul 5, 2024
Repository metrics
- Stars
- (189 stars)
- PR merge metrics
- (PR metrics pending)
Description
Is your feature request related to a problem? Please describe.
For V2 compliance, there is a best practice to implement tests for all API methods. For the V2 FTP extension, two uncovered functions remain in /packages/zowe-explorer-ftp-extension/src/ZoweExplorerFtpJesApi.ts: https://github.com/zowe/zowe-explorer-vscode/blob/a2cff84ae183a23dd95c375ff19ddf240cffc91a/packages/zowe-explorer-ftp-extension/src/ZoweExplorerFtpJesApi.ts#L200 https://github.com/zowe/zowe-explorer-vscode/blob/a2cff84ae183a23dd95c375ff19ddf240cffc91a/packages/zowe-explorer-ftp-extension/src/ZoweExplorerFtpJesApi.ts#L204
The functions in question simply throw errors, so unit tests would have limited value; and, for compliance, this is only a best practice, not a requirement.
Describe the solution you'd like
Add unit test for these functions.
Describe alternatives you've considered
Additional context