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

Function ExampleSlice

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

Source from the content-addressed store, hash-verified

14}
15
16func ExampleSlice() {
17 original := []interface{}{"foo"}
18
19 fmt.Println(compareValues(original, []interface{}{"foo"}))
20 fmt.Println(compareValues(original, []interface{}{"bar"}))
21 fmt.Println(compareValues(original, []interface{}{}))
22 fmt.Println(compareValues(original, []interface{}{"foo", "bar"}))
23
24 // Output:
25 // (=)[(=)foo]
26 // (|)[(>)bar]
27 // (|)[(-)foo]
28 // (|)[(=)foo (+)bar]
29}
30
31func ExampleMap() {
32 original := map[string]interface{}{"foo": "bar"}

Callers

nothing calls this directly

Calls 1

compareValuesFunction · 0.85

Tested by

no test coverage detected