Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip-Carneiro committed Oct 29, 2024
1 parent 17053bb commit b5857c0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/webview/components/kdbNewConnectionView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export class KdbNewConnectionView extends LitElement {
>`;
}

/* istanbul ignore next */
renderServerNameField(serverType: ServerType, isBundleQ?: boolean) {
return isBundleQ
? html`<sl-input
Expand Down Expand Up @@ -240,7 +241,9 @@ export class KdbNewConnectionView extends LitElement {
: this.kdbServer.serverPort,
)}"
@input="${(event: Event) => {
/* istanbul ignore next */
const value = (event.target as HTMLInputElement).value;
/* istanbul ignore next */
if (isBundleQ) {
this.bundledServer.serverPort = value;
} else {
Expand Down Expand Up @@ -291,7 +294,9 @@ export class KdbNewConnectionView extends LitElement {
: this.insightsServer.server,
)}"
@input="${(event: Event) => {
/* istanbul ignore next */
const value = (event.target as HTMLInputElement).value;
/* istanbul ignore next */
if (serverType === ServerType.KDB) {
this.kdbServer.serverName = value;
} else {
Expand Down Expand Up @@ -420,7 +425,9 @@ export class KdbNewConnectionView extends LitElement {
class="text-field larger"
value="${live(this.newLblName)}"
@sl-input="${(event: Event) => {
/* istanbul ignore next */
this.newLblName = (event.target as HTMLInputElement).value;
/* istanbul ignore next */
this.requestUpdate();
}}"
id="label-name"></sl-input>
Expand All @@ -433,7 +440,9 @@ export class KdbNewConnectionView extends LitElement {
id="label-color"
value="${live(this.newLblColorName)}"
@sl-change="${(event: Event) => {
/* istanbul ignore next */
this.newLblColorName = (event.target as HTMLInputElement).value;
/* istanbul ignore next */
this.requestUpdate();
}}"
class="dropdown"
Expand Down Expand Up @@ -515,6 +524,7 @@ export class KdbNewConnectionView extends LitElement {
`;
}

/* istanbul ignore next */
renderNewMyQConnectionForm() {
return html`<div class="col">
<div class="row">
Expand Down Expand Up @@ -596,6 +606,7 @@ export class KdbNewConnectionView extends LitElement {
<vscode-checkbox
.checked="${this.insightsServer.insecure}"
@change="${(event: Event) => {
/* istanbul ignore next */
this.insightsServer.insecure = (
event.target as HTMLInputElement
).checked;
Expand Down Expand Up @@ -656,6 +667,7 @@ export class KdbNewConnectionView extends LitElement {
this.selectedTab === ConnectionType.BundledQ,
)}"
@click="${() => {
/* istanbul ignore next */
this.selectedTab = ConnectionType.BundledQ;
}}"
>Bundle q</sl-tab
Expand All @@ -665,6 +677,7 @@ export class KdbNewConnectionView extends LitElement {
panel="${ConnectionType.Kdb}"
?active="${live(this.selectedTab === ConnectionType.Kdb)}"
@click="${() => {
/* istanbul ignore next */
this.selectedTab = ConnectionType.Kdb;
}}"
>My q
Expand All @@ -676,6 +689,7 @@ export class KdbNewConnectionView extends LitElement {
this.selectedTab === ConnectionType.Insights,
)}"
@click="${() => {
/* istanbul ignore next */
this.selectedTab = ConnectionType.Insights;
}}"
>Insights connection
Expand Down

0 comments on commit b5857c0

Please sign in to comment.