MCPcopy Create free account
hub / github.com/openclaw/gogcli / TestEffectiveCopyDestination

Function TestEffectiveCopyDestination

internal/sheetsvalidation/copy_test.go:92–111  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

90}
91
92func TestEffectiveCopyDestination(t *testing.T) {
93 source := &sheets.GridRange{
94 StartRowIndex: 0,
95 EndRowIndex: 2,
96 StartColumnIndex: 0,
97 EndColumnIndex: 3,
98 }
99 destination := &sheets.GridRange{
100 StartRowIndex: 10,
101 EndRowIndex: 11,
102 StartColumnIndex: 20,
103 EndColumnIndex: 21,
104 }
105
106 got := EffectiveCopyDestination(source, destination, true)
107 if got.StartRowIndex != 10 || got.EndRowIndex != 13 ||
108 got.StartColumnIndex != 20 || got.EndColumnIndex != 22 {
109 t.Fatalf("destination = %#v", got)
110 }
111}

Callers

nothing calls this directly

Calls 1

EffectiveCopyDestinationFunction · 0.85

Tested by

no test coverage detected