()
| 92 | } |
| 93 | |
| 94 | func ExampleInstance_DisplayOutput_normal() { |
| 95 | instance := &Instance{ |
| 96 | TargetVersions: map[string]string{ |
| 97 | "foo": "v1.16.0", |
| 98 | }, |
| 99 | Outputs: []*Output{ |
| 100 | testOutput1, |
| 101 | testOutput2, |
| 102 | testOutputDeprecatedNotRemoved, |
| 103 | }, |
| 104 | OutputFormat: "normal", |
| 105 | Components: []string{"foo"}, |
| 106 | } |
| 107 | _ = instance.DisplayOutput() |
| 108 | |
| 109 | // Output: |
| 110 | // NAME-------------------- KIND-------- VERSION------------- REPLACEMENT-- REMOVED-- DEPRECATED-- REPL AVAIL-- |
| 111 | // some name one----------- Deployment-- extensions/v1beta1-- apps/v1------ true----- true-------- true-------- |
| 112 | // some name two----------- Deployment-- extensions/v1beta1-- apps/v1------ true----- true-------- true-------- |
| 113 | // deprecated not removed-- Deployment-- apps/v1------------- none--------- false---- true-------- false------- |
| 114 | } |
| 115 | |
| 116 | func ExampleInstance_DisplayOutput_onlyShowRemoved() { |
| 117 | instance := &Instance{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…