(expected string, actual string)
| 148 | } |
| 149 | |
| 150 | func allEquals(expected string, actual string) bool { |
| 151 | if (expected == "") != (strings.TrimSpace(actual) == "") { // XOR |
| 152 | return false |
| 153 | } |
| 154 | lines := strings.Split(actual, "\n") |
| 155 | for _, l := range lines { |
| 156 | trimmed := strings.TrimSpace(l) |
| 157 | if trimmed != "" && trimmed != expected { |
| 158 | return false |
| 159 | } |
| 160 | } |
| 161 | return true |
| 162 | } |
no outgoing calls
searching dependent graphs…