authors_test.go | |
---|---|
|
|
Documentation in literate-programming-style is available at: https://redhatinsights.github.io/insights-operator-cli/packages/commands/authors_test.html |
|
TestCommandAuthors function checks if the command 'authors' really displays list of authors to 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 standard output is empty, ie. if capture failed or nothing was displayed |
|
check if header was written into standard output |
|
check if list of authors was written into standard output |
|