MCPcopy Index your code
hub / github.com/docker/cli / TestLoadTwoDifferentVersion

Function TestLoadTwoDifferentVersion

cli/compose/loader/merge_test.go:15–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestLoadTwoDifferentVersion(t *testing.T) {
16 configDetails := types.ConfigDetails{
17 ConfigFiles: []types.ConfigFile{
18 {Filename: "base.yml", Config: map[string]any{
19 "version": "3.1",
20 }},
21 {Filename: "override.yml", Config: map[string]any{
22 "version": "3.4",
23 }},
24 },
25 }
26 _, err := Load(configDetails)
27 assert.Error(t, err, "version mismatched between two composefiles : 3.1 and 3.4")
28}
29
30func TestLoadLogging(t *testing.T) {
31 loggingCases := []struct {

Callers

nothing calls this directly

Calls 2

LoadFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…