package
1.7.13
Repository: https://github.com/checkmarx/kics.git
Documentation: pkg.go.dev

# README

Tests

The purpose of this docs is to describe KICS' tests

Getting Started

There are several ways to execute the E2E tests.

TLDR

This command will execute all go tests:

make test-race-cover

This will run a shorter test suite without the queries tests.

make test-short

If you want to generate a HTML coverage report:

make test-coverage-report

# Functions

CaptureCommandOutput set cobra command args, if necessary, then capture the output.
CaptureOutput changes default stdout to intercept into a buffer, converts it to string and returns it.
ChangeCurrentDir gets current working directory and changes to its parent until finds the desired directory or fail.
GetCurrentDirName returns current working directory.
MapToStringSlice extract slice of keys from a map[string]string.
StringifyStruct stringify struct for pretty print.

# Constants

ValidUUIDRegex is a constant representing a regular expression rule to validate UUID string.

# Variables

ComplexSummaryMock a summary with more results to be used without running kics scan.
No description provided by the author
ExampleSummaryMock a summary with specific results to CycloneDX report tests.
ExampleSummaryMockCWE a summary with specific results to CycloneDX report tests with cwe field complete.
SimpleSummaryMock a summary with specific results to ASFF report tests.
SimpleSummaryMockAsff a simple summary to be used with cwe field complete.
SummaryMock a summary to be used without running kics scan.
SummaryMockCWE a summary to be used with cwe field complete.