()
| 29 | } |
| 30 | |
| 31 | func (e Event) Attributes() []string { |
| 32 | list := make([]string, 0) |
| 33 | uniq := make(map[string]bool, 0) |
| 34 | |
| 35 | for _, c := range e.Changes { |
| 36 | for _, a := range c.Attributes { |
| 37 | uniq[a] = true |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | for a, _ := range uniq { |
| 42 | list = append(list, a) |
| 43 | } |
| 44 | |
| 45 | sort.Strings(list) |
| 46 | |
| 47 | return list |
| 48 | } |
| 49 | |
| 50 | func structCompare(a, b interface{}) (bool, string) { |
| 51 | va := reflect.ValueOf(a) |
no outgoing calls
no test coverage detected