Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct {
PathTmpDir string // Path to folder used by unit tests to create temporary files and test output
PathDataDir string // Path to sample data used by unit tests
PathNmapDir string // Path to the Nmap executable, which one to use during unit tests
PathNmap string // Path to the Nmap executable, which one to use during unit tests
PathSslyze string // Path to the Sslyze executable, which one to use during unit tests
PathPython string // Path to python3.7, required by SSL tests
PathNucleiTemplates string // Path to nuclei templates directory, which one to use during unit tests
HttpUserAgent string // HTTP user agent to use during unit tests
HttpProxy *url.URL // HTTP Proxy to use during unit tests
}
Settings holds all necessary unittest settings
func GetSettings ¶
func GetSettings() *Settings
GetSettings returns test settings that should be used by unit tests. Invalid settings will be changed to empty values. Unit test should decide themselves which of these settings are mandatory and check their availability. Unit tests should always run as comprehensive as possible with the current configuration.
Click to show internal directories.
Click to hide internal directories.