(t *testing.T, s, substr string, shouldContain bool)
| 50 | } |
| 51 | |
| 52 | func AssertContains(t *testing.T, s, substr string, shouldContain bool) { |
| 53 | s = strings.ToLower(s) |
| 54 | isContain := strings.Contains(s, substr) |
| 55 | if shouldContain { |
| 56 | if !isContain { |
| 57 | t.Errorf("%q is not included in %s", substr, s) |
| 58 | } |
| 59 | } else { |
| 60 | if isContain { |
| 61 | t.Errorf("%q is included in %q", substr, s) |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | func AssertClone(t *testing.T, e, g any) { |
| 67 | ev := reflect.ValueOf(e).Elem() |
searching dependent graphs…