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

Function TestEmptyCopy

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

Source from the content-addressed store, hash-verified

7)
8
9func TestEmptyCopy(t *testing.T) {
10 tb := New(t)
11 cpy := tb.EmptyCopy()
12
13 assert.NotNil(t, cpy)
14 assert.NotSame(t, tb, cpy)
15 assert.Equal(t, 0, cpy.NumRows())
16 assert.Equal(t, tb.NumCols(), cpy.NumCols())
17}
18
19func TestCopy(t *testing.T) {
20 tb := New(t)

Callers

nothing calls this directly

Calls 4

NumRowsMethod · 0.80
NumColsMethod · 0.80
NewFunction · 0.70
EmptyCopyMethod · 0.65

Tested by

no test coverage detected