license_test.go | |
---|---|
|
|
Documentation in literate-programming-style is available at: https://redhatinsights.github.io/insights-operator-cli/packages/commands/license_test.html |
|
TestCommandLicense checks if the command 'license' displays actual license |
|
turn off any colorization on standard output |
|
use go-capture package to capture all writes to standard output |
|
check if capture operation was finished correctly |
|
check if capture operation captures at least some output |
|
check if header was written into standard output |
|
check if message with license was written onto standard output |
|