MCPcopy Create free account
hub / github.com/aws-cloudformation/rain / ExampleMap

Function ExampleMap

cft/diff/examples_test.go:31–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func ExampleMap() {
32 original := map[string]interface{}{"foo": "bar"}
33
34 fmt.Println(compareValues(original, map[string]interface{}{"foo": "bar"}))
35 fmt.Println(compareValues(original, map[string]interface{}{"foo": "baz"}))
36 fmt.Println(compareValues(original, map[string]interface{}{}))
37 fmt.Println(compareValues(original, map[string]interface{}{"foo": "bar", "baz": "quux"}))
38
39 // Output:
40 // (=)map[foo:(=)bar]
41 // (|)map[foo:(>)baz]
42 // (|)map[foo:(-)bar]
43 // (|)map[baz:(+)quux foo:(=)bar]
44}
45
46func ExampleNew() {
47 original := map[string]interface{}{

Callers

nothing calls this directly

Calls 1

compareValuesFunction · 0.85

Tested by

no test coverage detected