()
| 136 | } |
| 137 | |
| 138 | func ExampleInstance_DisplayOutput_wide() { |
| 139 | instance := &Instance{ |
| 140 | TargetVersions: map[string]string{ |
| 141 | "foo": "v1.16.0", |
| 142 | }, |
| 143 | Outputs: []*Output{ |
| 144 | testOutput1, |
| 145 | testOutput2, |
| 146 | }, |
| 147 | OutputFormat: "wide", |
| 148 | Components: []string{"foo"}, |
| 149 | } |
| 150 | _ = instance.DisplayOutput() |
| 151 | |
| 152 | // Output: |
| 153 | // NAME----------- NAMESPACE-------- KIND-------- VERSION------------- REPLACEMENT-- DEPRECATED-- DEPRECATED IN-- REMOVED-- REMOVED IN-- REPL AVAIL-- REPL AVAIL IN-- |
| 154 | // some name one-- pluto-namespace-- Deployment-- extensions/v1beta1-- apps/v1------ true-------- v1.9.0--------- true----- v1.16.0----- true-------- v1.10.0-------- |
| 155 | // some name two-- <UNKNOWN>-------- Deployment-- extensions/v1beta1-- apps/v1------ true-------- v1.9.0--------- true----- v1.16.0----- true-------- v1.10.0-------- |
| 156 | } |
| 157 | |
| 158 | func ExampleInstance_DisplayOutput_custom() { |
| 159 | instance := &Instance{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…