Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Likhitha Nimma <[email protected]>
  • Loading branch information
likhithanimma1 committed Nov 23, 2023
1 parent d1f4cbe commit faf156f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"issueUnixCommand.outputchannel.title": "Zowe Unix Command",
"path.notselected": "Enter a UNIX file filter search to enable Issue Unix Command from the tree view.",
"issueUnixCommand.quickPickOption": "Select the Profile to use to submit the Unix command",
"issueUnixCommand.cancelled": "Operation Cancelled",
"unixCommand.HomeDirectory": "Redirecting to Home Directory",
"issueUnixCommand.checkProfile": "Profile is invalid",
"issueUnixCommand.noProfilesLoaded": "No profiles available",
"path.notselected": "Enter a UNIX file filter search to enable Issue Unix Command from the tree view.",
"issueUnixCommand.apiNonExisting": "Not implemented yet for profile of type: ",
"setsshProfile.couldnotfindprofile": "No SSH profile found. Please create an SSH profile before issuing Unix commands.",
"issueUnixCommand.command.hostname": "Select a Unix command to run against ",
Expand Down
8 changes: 4 additions & 4 deletions packages/zowe-explorer/src/command/UnixCommandHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ export class UnixCommandHandler extends ZoweCommandProvider {
return;

Check warning on line 87 in packages/zowe-explorer/src/command/UnixCommandHandler.ts

View check run for this annotation

Codecov / codecov/patch

packages/zowe-explorer/src/command/UnixCommandHandler.ts#L87

Added line #L87 was not covered by tests
}
}
if (cwd == "") {
Gui.errorMessage(localize("path.notselected", "Enter a UNIX file filter search to enable Issue Unix Command from the tree view."));
return;
}
}
if (!session) {
const profileNamesList = ProfileManagement.getRegisteredProfileNameList(globals.Trees.USS);
Expand Down Expand Up @@ -129,10 +133,6 @@ export class UnixCommandHandler extends ZoweCommandProvider {
} else {
profile = node.getProfile();

Check warning on line 134 in packages/zowe-explorer/src/command/UnixCommandHandler.ts

View check run for this annotation

Codecov / codecov/patch

packages/zowe-explorer/src/command/UnixCommandHandler.ts#L133-L134

Added lines #L133 - L134 were not covered by tests
}
if (cwd == "" && this.flag) {
Gui.errorMessage(localize("path.notselected", "Enter a UNIX file filter search to enable Issue Unix Command from the tree view."));
return;
}
if (ZoweExplorerApiRegister.getCommandApi(profile).sshProfileRequired) {
this.sshSession = await this.setsshSession();
if (!this.sshSession) return;
Expand Down

0 comments on commit faf156f

Please sign in to comment.