(t *testing.T)
| 27 | } |
| 28 | |
| 29 | func TestCompareScalar(t *testing.T) { |
| 30 | testCompare(t, []compareTest{ |
| 31 | { |
| 32 | nil, nil, "(=)<nil>", Unchanged, |
| 33 | }, |
| 34 | { |
| 35 | "foo", "foo", "(=)foo", Unchanged, |
| 36 | }, |
| 37 | { |
| 38 | "foo", "bar", "(>)bar", Changed, |
| 39 | }, |
| 40 | { |
| 41 | "foo", 1, "(>)1", Changed, |
| 42 | }, |
| 43 | { |
| 44 | "foo", []int{1, 2, 3}, "(>)[1 2 3]", Changed, |
| 45 | }, |
| 46 | }) |
| 47 | } |
| 48 | |
| 49 | func TestCompareSlices(t *testing.T) { |
| 50 | testCompare(t, []compareTest{ |
nothing calls this directly
no test coverage detected