MCPcopy Index your code
hub / github.com/FairwindsOps/pluto / ExampleInstance_DisplayOutput_onlyShowRemoved

Function ExampleInstance_DisplayOutput_onlyShowRemoved

pkg/api/output_test.go:116–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116func 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
138func ExampleInstance_DisplayOutput_wide() {
139 instance := &Instance{

Callers

nothing calls this directly

Calls 1

DisplayOutputMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…