()
| 238 | } |
| 239 | |
| 240 | func ExampleInstance_DisplayOutput_yaml() { |
| 241 | instance := &Instance{ |
| 242 | TargetVersions: map[string]string{ |
| 243 | "foo": "v1.16.0", |
| 244 | }, |
| 245 | Outputs: []*Output{ |
| 246 | testOutput1, |
| 247 | testOutput2, |
| 248 | }, |
| 249 | Components: []string{"foo"}, |
| 250 | OutputFormat: "yaml", |
| 251 | } |
| 252 | _ = instance.DisplayOutput() |
| 253 | |
| 254 | // Output: |
| 255 | // items: |
| 256 | // - name: some name one |
| 257 | // filePath: path-to-file |
| 258 | // namespace: pluto-namespace |
| 259 | // api: |
| 260 | // version: extensions/v1beta1 |
| 261 | // kind: Deployment |
| 262 | // deprecated-in: v1.9.0 |
| 263 | // removed-in: v1.16.0 |
| 264 | // replacement-api: apps/v1 |
| 265 | // replacement-available-in: v1.10.0 |
| 266 | // component: foo |
| 267 | // deprecated: true |
| 268 | // removed: true |
| 269 | // replacementAvailable: true |
| 270 | // - name: some name two |
| 271 | // api: |
| 272 | // version: extensions/v1beta1 |
| 273 | // kind: Deployment |
| 274 | // deprecated-in: v1.9.0 |
| 275 | // removed-in: v1.16.0 |
| 276 | // replacement-api: apps/v1 |
| 277 | // replacement-available-in: v1.10.0 |
| 278 | // component: foo |
| 279 | // deprecated: true |
| 280 | // removed: true |
| 281 | // replacementAvailable: true |
| 282 | // target-versions: |
| 283 | // foo: v1.16.0 |
| 284 | } |
| 285 | |
| 286 | func ExampleInstance_DisplayOutput_csv() { |
| 287 | instance := &Instance{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…