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

Function stubValue

cft/diff/format.go:39–48  ·  view source on GitHub ↗
(v value)

Source from the content-addressed store, hash-verified

37}
38
39func stubValue(v value) string {
40 switch v.Value().(type) {
41 case map[string]interface{}:
42 return "{...}"
43 case []interface{}:
44 return "[...]"
45 default:
46 return "..."
47 }
48}
49
50func formatDiff(d Diff, path []interface{}, long bool) string {
51 switch v := d.(type) {

Callers 2

formatSliceFunction · 0.85
formatMapFunction · 0.85

Calls 1

ValueMethod · 0.65

Tested by

no test coverage detected