MCPcopy Create free account
hub / github.com/datasweet/datatable / TestCopy

Function TestCopy

copy_test.go:19–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

17}
18
19func 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}

Callers

nothing calls this directly

Calls 5

checkTableFunction · 0.85
NumRowsMethod · 0.80
NumColsMethod · 0.80
NewFunction · 0.70
CopyMethod · 0.65

Tested by

no test coverage detected