copyright_test.go | |
---|---|
|
|
Documentation in literate-programming-style is available at: https://redhatinsights.github.io/insights-operator-cli/packages/commands/copyright_test.html |
|
TestCommandCopyright checks if the command 'copyright' displays actual copyright message on the standard output. |
|
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 copyright message was written onto standard output |
|