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

Function TestBuildProperties

cli/compose/loader/loader_test.go:824–842  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

822}
823
824func TestBuildProperties(t *testing.T) {
825 dict, err := ParseYAML([]byte(`
826version: "3"
827services:
828 web:
829 image: web
830 build: .
831 links:
832 - bar
833 db:
834 image: db
835 build:
836 context: ./db
837`))
838 assert.NilError(t, err)
839 configDetails := buildConfigDetails(dict, nil)
840 _, err = Load(configDetails)
841 assert.NilError(t, err)
842}
843
844func TestDeprecatedProperties(t *testing.T) {
845 dict, err := ParseYAML([]byte(`

Callers

nothing calls this directly

Calls 3

ParseYAMLFunction · 0.85
buildConfigDetailsFunction · 0.85
LoadFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…