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

Function TestExternalLegacy

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

Source from the content-addressed store, hash-verified

56}
57
58func TestExternalLegacy(t *testing.T) {
59 ssh, err := transformMaybeExternal(map[string]any{
60 "external": map[string]any{
61 "name": "foo",
62 },
63 }, tree.NewPath("resources.test"), false)
64 assert.NilError(t, err)
65 assert.DeepEqual(t, ssh, map[string]any{
66 "external": true,
67 "name": "foo",
68 })
69}
70
71func TestExternalLegacyNamed(t *testing.T) {
72 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…