()
| 114 | } |
| 115 | |
| 116 | func ExampleInstance_DisplayOutput_onlyShowRemoved() { |
| 117 | instance := &Instance{ |
| 118 | TargetVersions: map[string]string{ |
| 119 | "foo": "v1.16.0", |
| 120 | }, |
| 121 | OnlyShowRemoved: true, |
| 122 | Outputs: []*Output{ |
| 123 | testOutput1, |
| 124 | testOutput2, |
| 125 | testOutputDeprecatedNotRemoved, |
| 126 | }, |
| 127 | OutputFormat: "normal", |
| 128 | Components: []string{"foo"}, |
| 129 | } |
| 130 | _ = instance.DisplayOutput() |
| 131 | |
| 132 | // Output: |
| 133 | // NAME----------- KIND-------- VERSION------------- REPLACEMENT-- REMOVED-- DEPRECATED-- REPL AVAIL-- |
| 134 | // some name one-- Deployment-- extensions/v1beta1-- apps/v1------ true----- true-------- true-------- |
| 135 | // some name two-- Deployment-- extensions/v1beta1-- apps/v1------ true----- true-------- true-------- |
| 136 | } |
| 137 | |
| 138 | func ExampleInstance_DisplayOutput_wide() { |
| 139 | instance := &Instance{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…