MCPcopy
hub / github.com/helmfile/helmfile / TestDiff

Function TestDiff

pkg/app/diff_test.go:200–1256  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

198}
199
200func TestDiff(t *testing.T) {
201 type flags struct {
202 skipNeeds bool
203 includeNeeds bool
204 noHooks bool
205 }
206
207 testcases := []struct {
208 name string
209 loc string
210 ns string
211 concurrency int
212 skipDiffOnInstall bool
213 detailedExitcode bool
214 error string
215 flags flags
216 files map[string]string
217 selectors []string
218 lists map[exectest.ListKey]string
219 diffs map[exectest.DiffKey]error
220 upgraded []exectest.Release
221 deleted []exectest.Release
222 log string
223 overrideContext string
224 }{
225 //
226 // complex test cases for smoke testing
227 //
228 {
229 name: "smoke",
230 loc: location(),
231 files: map[string]string{
232 "/path/to/helmfile.yaml": `
233releases:
234- name: database
235 chart: charts/mysql
236 needs:
237 - logging
238- name: frontend-v1
239 chart: charts/frontend
240 installed: false
241 needs:
242 - servicemesh
243 - logging
244 - backend-v1
245- name: frontend-v2
246 chart: charts/frontend
247 needs:
248 - servicemesh
249 - logging
250 - backend-v2
251- name: frontend-v3
252 chart: charts/frontend
253 needs:
254 - servicemesh
255 - logging
256 - backend-v2
257- name: backend-v1

Callers

nothing calls this directly

Calls 9

RequireLogFunction · 0.92
locationFunction · 0.85
listFlagsFunction · 0.85
runWithLogCaptureFunction · 0.85
appWithFsFunction · 0.85
createHelmKeyFunction · 0.85
DiffMethod · 0.80
StringMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected