MCPcopy Create free account
hub / github.com/compose-spec/compose-go / TestExternalNamed

Function TestExternalNamed

transform/external_test.go:36–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestExternalNamed(t *testing.T) {
37 ssh, err := transformMaybeExternal(map[string]any{
38 "external": true,
39 "name": "foo",
40 }, tree.NewPath("resources.test"), false)
41 assert.NilError(t, err)
42 assert.DeepEqual(t, ssh, map[string]any{
43 "external": true,
44 "name": "foo",
45 })
46}
47
48func TestExternalUnnamed(t *testing.T) {
49 ssh, err := transformMaybeExternal(map[string]any{

Callers

nothing calls this directly

Calls 2

NewPathFunction · 0.92
transformMaybeExternalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…