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

Method Mode

cft/diff/diff.go:80–88  ·  view source on GitHub ↗

Mode returns the slice's mode

()

Source from the content-addressed store, hash-verified

78
79// Mode returns the slice's mode
80func (s slice) Mode() Mode {
81 for _, v := range s {
82 if v.Mode() != Unchanged {
83 return Involved
84 }
85 }
86
87 return Unchanged
88}
89
90// value returns the slice's value
91func (s slice) Value() interface{} {

Callers 1

StringMethod · 0.95

Calls 1

ModeMethod · 0.65

Tested by

no test coverage detected