()
| 284 | } |
| 285 | |
| 286 | func ExampleInstance_DisplayOutput_csv() { |
| 287 | instance := &Instance{ |
| 288 | TargetVersions: map[string]string{ |
| 289 | "foo": "v1.16.0", |
| 290 | }, |
| 291 | Outputs: []*Output{ |
| 292 | testOutput1, |
| 293 | testOutput2, |
| 294 | }, |
| 295 | Components: []string{"foo"}, |
| 296 | OutputFormat: "csv", |
| 297 | } |
| 298 | _ = instance.DisplayOutput() |
| 299 | |
| 300 | // Output: |
| 301 | // NAME,NAMESPACE,KIND,VERSION,REPLACEMENT,DEPRECATED,DEPRECATED IN,REMOVED,REMOVED IN,REPL AVAIL,REPL AVAIL IN |
| 302 | // some name one,pluto-namespace,Deployment,extensions/v1beta1,apps/v1,true,v1.9.0,true,v1.16.0,true,v1.10.0 |
| 303 | // some name two,<UNKNOWN>,Deployment,extensions/v1beta1,apps/v1,true,v1.9.0,true,v1.16.0,true,v1.10.0 |
| 304 | } |
| 305 | |
| 306 | func ExampleInstance_DisplayOutput_csv_customcolumns() { |
| 307 | instance := &Instance{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…