(t *testing.T)
| 17 | } |
| 18 | |
| 19 | func TestCopy(t *testing.T) { |
| 20 | tb := New(t) |
| 21 | cpy := tb.Copy() |
| 22 | assert.NotNil(t, cpy) |
| 23 | assert.NotSame(t, tb, cpy) |
| 24 | assert.Equal(t, tb.NumRows(), cpy.NumRows()) |
| 25 | assert.Equal(t, tb.NumCols(), cpy.NumCols()) |
| 26 | |
| 27 | checkTable(t, cpy, |
| 28 | "champ", "champion", "win", "loose", "winRate", "sum", "ok", |
| 29 | "Malzahar", "MALZAHAR", 10, 6, "62.5 %", 696.0, true, |
| 30 | "Xerath", "XERATH", 20, 5, "80 %", 696.0, true, |
| 31 | "Teemo", "TEEMO", 666, 666, "50 %", 696.0, true, |
| 32 | ) |
| 33 | } |
nothing calls this directly
no test coverage detected