MCPcopy Index your code
hub / github.com/cloudgraphdev/cli / incrementTotalTable

Method incrementTotalTable

src/reports/scan-report.ts:110–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 }
109
110 private incrementTotalTable(): void {
111 const totalIndex = this.internalTable.data.findIndex(val => {
112 return Object.keys(val).includes('total')
113 })
114 if (this.internalTable?.data?.[totalIndex]?.total) {
115 const [currentCount, status] = this.internalTable.data[totalIndex].total
116 const newCount = 1 + Number(currentCount)
117 this.internalTable.data[totalIndex] = {
118 total: [String(newCount), status],
119 }
120 }
121 }
122
123 private getStatus(result: string): string {
124 let status

Callers 1

pushDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected